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
PHP , , . . PHP script, .
"" ( , !) ( ), , , ( "" ), , .:)
, , PHP: - , , .. , , . PHP-, register_globals, .
register_globals
, undefined. , php . , php . :
$array = array( 'one' => 'right' , 'two' => 'wrong' ); define('one', 'two'); echo $array[one]; //echoes "wrong"
, , , (, $array['three']; ). PHP , , ( ).
$array['three'];
, . , .
, . error_reporting php.ini .
error_reporting
It looks like you have another error_reporting value set on two servers. Check your php.ini and install accordingly.