I was reading the PHP documentation and a function is_scalar() - as said by the site itself - when it is used it will inform if a certain variable is scalar. However, I wanted to know more about these scalar variables:
What is a sca...
How can I get you to retrieve input data.
Example:
> Qual seu nome?
...Usuário digita o seu nome...
> Olá, $nome-digitado
How can I do this via Shell Script in PHP .
I'm trying to use move_upload_file to move a file uploaded by the user to their final destination:
$pasta = '../../public_html/admin/helpdesk/ticket/uploads/';
if (!empty($_FILES['img']['name'])) {
foreach ($_FILES["img"]["error"...
I need to adapt my code to calculate the difference between the time of the server where the site is hosted and the time of the user's computer to not overload my system.
I am setting up a table where I will show the time of another server an...
I have a loop printing HTML elements, for example:
for($i = 0; $i < 3; $i++){ echo "<div id='$i'>$i</div>"; }
Is it a bad practice to put numbers as id in HTML elements? If so, why?
For example, I want to sell a product that includes membership and monthly payment, R $ X, XX + R $ X, XX automatic debit.
Example of automatic debit:
$preapproval_data = array(
"payer_email" => "[email protected]",
"back...
Use include (or #
I noticed that most frameworks that work with MVC use require within a method, for example the CodeIgniter3 require file:
public function model($model, $name = '', $db_conn = FALSE)
{
...
foreach...
Let's say I have a user table ( id | nome ) and that where they are listed (client-side ) I can select multiple of them and delete them at the same time. >
How could I do this on a MySQL database using PDO?
I know that MySQL allows th...
I have a class A and I'm creating a class B . I want one of the attributes of B to be an object of A .
Why is the public $objeto = new A(); notation correct?