Novice Question - Viewing Errors
| From: | revDAVE | Date: | Tue, 19 Jun 2007 14:23:20 +0000 |
| Subject: | Novice Question - Viewing Errors | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-257410@lists.php.net to get a copy of this message | ||
I am just beginning to learn about PHP.
It seems as though if I make a code error... The PHP page will simply come
up blank. ( Not too helpful for error checking) - I would like to see some
kind of report on the page as to what went wrong.
I have tried adding various lines of code to my page - from the link below
- however I still get a blank page when errors occur...
display_errors(1);
error_reporting (E_ALL);
Etc........
I have read that possibly the errors are being sent to kind of error log -
rather than the page?
Q: How can I get the error reporting show up on the page so I can see it?
- - - - -
From: PHP: Error Handling and Logging Functions - Manual
Location: http://www.php.net/manual/en/ref.errorfunc.php
- - - - -
XXXIII. Error Handling and Logging Functions
--
Thanks - RevDave
CoolCat@hosting4days.com
[db-lists]