error reporting
| From: | Justin French | Date: | Tue, 24 Jul 2001 06:29:55 +0000 |
| Subject: | error reporting | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-59307@lists.php.net to get a copy of this message | ||
Hi,
On my local test server (PHP4.0.1, FreeBSD, MySQL), when I
get a general error (bad code) it reports "error <type> on
<file/script> on line 1".
It allways says "line 1", even if it's line 4028.
I've had experience with this happening if there is a
structure problem with { brackets } missing (on any server),
but never for general syntax-kinda errors.
But on my "live" server (a couple of different ISPs), the
error reports the correct line, as you would expect.
Since it's only on my test server, I assume it's a problem
with the config file, or something like that, but don't know
where to start.... any ideas?
Maybe I can switch on an errors function at the start of each
script?
Justin French