How to overcome, 'PHP Notice: Use of undefined constant' -
my friend, able run without no errors:
$a = $_get[a];
however, unable run get[] because gives me error message:
use of undefined constant - assumed 'a'
is there way can change in php settings can run code friend can run code?
many thanks!
i understand have write way:
$a = $_get['a'];
you can turn off notices, ignoring check engine light on car...
// report errors except e_notice // default value set in php.ini error_reporting(e_all ^ e_notice);
you should checking whether it's set...
$a = !empty($_get['a']) ? $_get['a'] : null;
Comments
Post a Comment