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

Why php don't report error?

P: n/a
I got a very odd issue: on some of my virtual hostings, php just don't
display any error/warning message if on a error. It just stopped with
a blank page. I totally have no idea if it is a php problem or an
Apache problem. If anyone can help me how to check the issue I will
appreciate. Thanks in advance!

Alex Shi
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a

"Alex Shi" <ch****@stonix.com> wrote in message
news:oo*******************@nntp-post.primus.ca...
I got a very odd issue: on some of my virtual hostings, php just don't
display any error/warning message if on a error. It just stopped with
a blank page. I totally have no idea if it is a php problem or an
Apache problem. If anyone can help me how to check the issue I will
appreciate. Thanks in advance!


[en]

It is probably the value of the display_errors option in php.ini (PHP
configuration file) that causes the error messages to be suppressed. If you
have access to that file simply change the value of display_errors from Off
to On.

[eo]

Ver┼Łajne estas la valoro de la display_errors-eblo en php.ini
(PHP-al─Łustigdosiero) kiu ka┼*zas la subpremadon de la erarmesa─Łojn. Se vi
havas eniron al tiu dosiero, simple ┼Łan─Łu la valoron de display_errors de
Off al On.

Gerard van Wilgen
--
www.majstro.com (On-line translation dictionary / Enreta tradukvortaro)
www.travlang.com/Ergane (Free translation dictionary for Windows / Senpaga
tradukvortaro por Windows)

Jul 17 '05 #2

P: n/a
Gerard van Wilgen wrote:
It is probably the value of the display_errors option in php.ini (PHP
configuration file) that causes the error messages to be suppressed. If you
have access to that file simply change the value of display_errors from Off
to On.


Even if you do not have access to php.ini (which is the most common
case) you can change this behaviour with ini_set() at the beginning of
the script, see http://www.php.net/manual/en/function.ini-set.php

Important settings are display_errors and error_reporting.

Frank

--
http://www.landseer-stuttgart.de
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.