By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,084 Members | 1,969 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,084 IT Pros & Developers. It's quick & easy.

PHP5 and some kind of diagnostics

P: n/a
Hi,

I've worked with PHP5 for a good while and yet it has one problem that
frustrates the hell out of me: when I have syntactic or punctuation errors
in a script I get nothing except a blank white page in the browser. No
message, nothing in the server logs--nothing at all. I've been programming
for 30 years so I know it's not unreasonable to expect some kind of
indication or message about WHERE the problem is occuring. I have to debug
like I used to in assembly by commenting out chunks until it runs.

I run PHP5 as a DSO on Apache 2 with virtual hosts on a Mandrake platform.

Thanks,

Harley
Jun 14 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Tom
What's your error reporting setting? See:

http://www.php.net/manual/en/ref.errorfunc.php

and

http://www.php.net/manual/en/functio...-reporting.php

Tom
Harley wrote:
Hi,

I've worked with PHP5 for a good while and yet it has one problem that
frustrates the hell out of me: when I have syntactic or punctuation errors
in a script I get nothing except a blank white page in the browser. No
message, nothing in the server logs--nothing at all. I've been programming
for 30 years so I know it's not unreasonable to expect some kind of
indication or message about WHERE the problem is occuring. I have to debug
like I used to in assembly by commenting out chunks until it runs.

I run PHP5 as a DSO on Apache 2 with virtual hosts on a Mandrake platform.

Thanks,

Harley


Jun 14 '06 #2

P: n/a
Thanks, Tom. Checking those settings in php.ini did reveal the problem.

Curiously, if you set display_errors = On AND log_errors = On, you get
neither rather than both.

Harley

"Tom" <kl******@gmail.com> wrote in message
news:11**********************@u72g2000cwu.googlegr oups.com...
What's your error reporting setting? See:

http://www.php.net/manual/en/ref.errorfunc.php

and

http://www.php.net/manual/en/functio...-reporting.php

Tom
Harley wrote:
Hi,

I've worked with PHP5 for a good while and yet it has one problem that
frustrates the hell out of me: when I have syntactic or punctuation
errors
in a script I get nothing except a blank white page in the browser. No
message, nothing in the server logs--nothing at all. I've been
programming
for 30 years so I know it's not unreasonable to expect some kind of
indication or message about WHERE the problem is occuring. I have to
debug
like I used to in assembly by commenting out chunks until it runs.

I run PHP5 as a DSO on Apache 2 with virtual hosts on a Mandrake
platform.

Thanks,

Harley

Jun 14 '06 #3

P: n/a
Tom
Also worth noting, the set_error_handler function is great if you want
to customize your error reporting. See the comments on the php.net
for some ideas.

Tom
Harley wrote:
Thanks, Tom. Checking those settings in php.ini did reveal the problem.

Curiously, if you set display_errors = On AND log_errors = On, you get
neither rather than both.

Harley

"Tom" <kl******@gmail.com> wrote in message
news:11**********************@u72g2000cwu.googlegr oups.com...
What's your error reporting setting? See:

http://www.php.net/manual/en/ref.errorfunc.php

and

http://www.php.net/manual/en/functio...-reporting.php

Tom
Harley wrote:
Hi,

I've worked with PHP5 for a good while and yet it has one problem that
frustrates the hell out of me: when I have syntactic or punctuation
errors
in a script I get nothing except a blank white page in the browser. No
message, nothing in the server logs--nothing at all. I've been
programming
for 30 years so I know it's not unreasonable to expect some kind of
indication or message about WHERE the problem is occuring. I have to
debug
like I used to in assembly by commenting out chunks until it runs.

I run PHP5 as a DSO on Apache 2 with virtual hosts on a Mandrake
platform.

Thanks,

Harley


Jun 14 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.