|
For variables that may or may not exist, write code using the isset() function to avoid the generation of the error in the first place, instead of messing around with the error reporting or error handler after the error has already been generated. Your code will actually run faster by doing this as well.
__________________
If you are learning PHP, developing PHP code, or debugging PHP code, do yourself a favor and check your web server log for errors and/or turn on full PHP error reporting in php.ini or in a .htaccess file to get PHP to help you.
|