Php: notification alerts on different machines

I configured all my php files on a new machine, and I really got a lot of notification alerts.

my code is working properly without errors on my old machine.

eg. the next line (which should receive the value of the recordset) will trigger a notification: $ ID = $ rs [id];

The reason is missing quotes for id fields, but also things like calling $ _GET in a nonexistent value cause notifications.

Does anyone know what is the reason for this? I would like to keep the “simple” way of coding, like on my old machine, without worrying about quotes on record sets or tons of isset () - any ideas?

thank

+5
source share
4 answers

PHP , , . . PHP script, .

"" ( , !) ( ), , , ( "" ), , .:)

, , PHP: - , , .. , , . PHP-, register_globals, .

+5

, undefined. , php . , php . :

$array = array(
   'one' => 'right'
   , 'two' => 'wrong'
);
define('one', 'two');

echo $array[one]; //echoes "wrong"

, , , (, $array['three']; ). PHP , , ( ).

, . , .

+4

, . error_reporting php.ini .

+3

It looks like you have another error_reporting value set on two servers. Check your php.ini and install accordingly.

+1
source

All Articles