Re: error messages
| From: | tbt | Date: | Fri, 05 Oct 2007 07:32:29 +0000 |
| Subject: | Re: error messages | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-262789@lists.php.net to get a copy of this message | ||
I added the following lines to the top of my script but still no error
messages show up on the browser.
When a php error occurs the entire page is still shown blank.
Larry Garfield wrote:
>
> On Friday 05 October 2007, Paul Scott wrote:
>> On Thu, 2007-10-04 at 22:38 -0700, tbt wrote:
>> > I'm a newbie to php and i would like to know a way of viewing runtime
>> > errors on the browser. Currently when an error occurs nothing is
>> > displayed on the browser. Is there any way of viewing all error
>> messages
>> > on the browser itself.
>>
>> You can up the error_reporting level in your php.ini, or you can simply
>> put the following line at the top of your script:
>>
>> ini_set("error_reporting", "E_ALL");
>>
>> or for an even stricter setting:
>>
>> ini_set("error_reporting", "E_STRICT");
>>
>> --Paul
>
> You will also need to set:
>
> ini_set('display_errors', 'On');
>
> Some web hosts set it Off by default for security reasons, but you
> probably
> want it on for development and testing.
>
> --
> Larry Garfield AIM: LOLG42
> larry@garfieldtech.com ICQ: 6817012
>
> "If nature has made any one thing less susceptible than all others of
> exclusive property, it is the action of the thinking power called an idea,
> which an individual may exclusively possess as long as he keeps it to
> himself; but the moment it is divulged, it forces itself into the
> possession
> of every one, and the receiver cannot dispossess himself of it." --
> Thomas
> Jefferson
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
--
View this message in context: http://www.nabble.com/error-messages-tf4573258.html#a13054779
Sent from the PHP - General mailing list archive at Nabble.com.