There are general guidelines to help you in the PHP documentation and via a number of PHP mailing lists, you should read those first. A quick method is to turn on tracing in PHP. You can do this by editing your /usr/local/lib/php3.ini file (if you don''t have one then see the INSTALL file that comes with PHP which documents a template ini file).
Ensure error_reporting is set to 7, log_errors is set to On and set error_log to the name of a file (e.g. /tmp/php_errors). Once you have made these changes restart Apache and all the normal errors and warnings and parser errors will be logged to the file.
You can also set track_errors to On which makes the last error available in the $php_errormsg variable.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.