Connecting Tech Pros Worldwide Forums | Help | Site Map

Why php don't report error?

Alex Shi
Guest
 
Posts: n/a
#1: Jul 17 '05
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



Gerard van Wilgen
Guest
 
Posts: n/a
#2: Jul 17 '05

re: Why php don't report error?



"Alex Shi" <chpshi@stonix.com> wrote in message
news:ooUxc.47413$w76.18581@nntp-post.primus.ca...[color=blue]
> 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![/color]

[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)



Frank Schummertz
Guest
 
Posts: n/a
#3: Jul 17 '05

re: Why php don't report error?


Gerard van Wilgen wrote:
[color=blue]
> 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.[/color]

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
Closed Thread