Showing all errors and warnings in PHP
Display errors could be turned off in the php.ini or your Apache configuration file.
You can turn it on in the script:
error_reporting(E_ALL); ini_set ('.php','1');
You should see the same messages in the PHP error log.