Connecting Tech Pros Worldwide Help | Site Map

Why php don't report error?

  #1  
Old July 17th, 2005, 06:44 AM
Alex Shi
Guest
 
Posts: 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


  #2  
Old July 17th, 2005, 06:44 AM
Gerard van Wilgen
Guest
 
Posts: n/a

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)



  #3  
Old July 17th, 2005, 06:45 AM
Frank Schummertz
Guest
 
Posts: n/a

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP has encountered an access violation... Martin answers 39 October 28th, 2008 12:15 PM
Why PHP don't Report this SYNTAX ERROR ? nvn answers 1 September 25th, 2008 08:05 AM
loaded latest edition of Apache http server on XP, and installed php on that server... rfhurley answers 18 February 9th, 2007 10:25 PM
PHP mailer Paul Marshall answers 7 September 17th, 2005 05:05 AM