Connecting Tech Pros Worldwide Help | Site Map

Why php don't report error?

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 17th, 2005, 05:44 AM
Alex Shi
Guest
 
Posts: n/a
Default Why php don't report error?

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, 05:44 AM
Gerard van Wilgen
Guest
 
Posts: n/a
Default 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, 05:45 AM
Frank Schummertz
Guest
 
Posts: n/a
Default 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
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.