Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2001072

[PHP] error reporting From: Justin French (justin <email protected>)
Date: 07/24/01

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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>