How do I get PHP errors to display?




The PHP configuration file, php.ini, is the final and most immediate way to affect PHP's functionality. The php.ini file is read each time PHP is initialized.in other words, whenever httpd is restarted for the module version or with each script execution for the CGI version.


ini_set('display_errors', '1');
ini_set('display_startup_errors', '1');
error_reporting(E_ALL);
display_errors = on
If your change isn’t showing up, remember to stop and restart httpd. If it still isn’t showing up,use phpinfo() to check the path to php.ini.The configuration file is well commented and thorough. Keys are case sensitive, keyword values are not; whitespace, and lines beginning with semicolons are ignored. Booleans can be represented by 1/0, Yes/No, On/Off, or True/False. The default values in php.ini-dist will result in a reasonable PHP installation that can be tweaked later.Here we are explaining the important settings in php.ini which you may need for your PHP Parser

Post a Comment

0 Comments