Re: PHP and Error Reporting

From: graeme <graeme_foster(at)sherubtse(dot)edu(dot)bt>
To: pgsql-php(at)postgresql(dot)org
Subject: Re: PHP and Error Reporting
Date: 2005-03-02 05:35:28
Message-ID: 422550A0.2040104@sherubtse.edu.bt
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

You want:
error_reporting(E_ALL);
ini_set("display_errors", "1");

but first check the ini file with phpinfo()
what happens if you throw in an error, such as a syntax error?

graeme.

Thom Dyson wrote:

>I use Gyozo Papp's error handler class. Very useful because you can set
>errors to go to a pop-up window or to a log depending on where you are in
>the testing process.
>
>http://freshmeat.net/projects/errorhandler/
>
>It hasn't been updated in a couple years, but don't let that put you off.
>It works just fine.
>
>Thom Dyson
>Director of Information Services
>Sybex, Inc.
>
>
>
>pgsql-php-owner(at)postgresql(dot)org wrote on 03/01/2005 11:14:35 AM:
>
>
>
>>i'm running php with postgresql. i just finished
>>polishing off a pretty long query sequence. my page
>>returns a blank page.
>>
>>
>
>
>
>>how do i turn on error reporting when running php as a
>>cgi on my development xp / cygwin box?
>>
>>
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
>
>
>
>

--
Experience is a good teacher, but she sends in terrific bills.

Minna Antrim

In response to

Responses

Browse pgsql-php by date

  From Date Subject
Next Message Sarah, Godfrey, Matthew & Vera 2005-03-02 09:43:53 PHP function error
Previous Message Thom Dyson 2005-03-01 21:34:08 Re: PHP and Error Reporting