Home arrow Journal arrow Debug a PHP script
Debug a PHP script PDF
Thursday, 10 March 2011
If you try to load a php page and your browser goes blank activate error and warning display by editing /usr/local/etc/php.ini and adding there:

  display_errors = On
  error_reporting = E_ALL & ~E_NOTICE


Some errors might not appear in browser. You can log PHP errors in a file. To do that add the following lines in /usr/local/etc/php.ini:

  log_errors = On
  error_log = /var/log/php_errors.log

Last Updated ( Tuesday, 05 July 2011 )
 
< Prev   Next >

Other BSD Systems

OpenBSD

Misc

Solaris

Polls

Best BSD firewall?