pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
PHP and Error Reporting
6+ messages / 4 participants
[nested] [flat]

* PHP and Error Reporting
@ 2005-03-01 19:14  operationsengineer1@yahoo.com
  0 siblings, 2 replies; 6+ messages in thread

From: operationsengineer1@yahoo.com @ 2005-03-01 19:14 UTC (permalink / raw)
  To: pgsql-php

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?

i tried including...

ini_set('error_reporting', E_ALL);

and then i tried including...

error_reporting(E_ALL);

no error was reported - just a blank screen.

i'm sure it is a simple oversite, but it is so much
easier when php tell you where it breaks than to have
to find waldo by searching the entire script.

tia...

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: PHP and Error Reporting
@ 2005-03-01 19:27  operationsengineer1@yahoo.com
  parent: operationsengineer1@yahoo.com
  1 sibling, 1 reply; 6+ messages in thread

From: operationsengineer1@yahoo.com @ 2005-03-01 19:27 UTC (permalink / raw)
  To: operationsengineer1@yahoo.com; pgsql-php

i also have the following set in my php.ini file...

display_errors = On        

error_reporting = ~E_ALL     

still no error is being reported...

--- operationsengineer1@yahoo.com wrote:

> 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?
> 
> i tried including...
> 
> ini_set('error_reporting', E_ALL);
> 
> and then i tried including...
> 
> error_reporting(E_ALL);
> 
> no error was reported - just a blank screen.
> 
> i'm sure it is a simple oversite, but it is so much
> easier when php tell you where it breaks than to
> have
> to find waldo by searching the entire script.
> 
> tia...
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam
> protection around 
> http://mail.yahoo.com 
> 
> ---------------------------(end of
> broadcast)---------------------------
> TIP 7: don't forget to increase your free space map
> settings
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: PHP and Error Reporting
@ 2005-03-01 19:31  Mitch Pirtle <mitch.pirtle@gmail.com>
  parent: operationsengineer1@yahoo.com
  0 siblings, 1 reply; 6+ messages in thread

From: Mitch Pirtle @ 2005-03-01 19:31 UTC (permalink / raw)
  To: pgsql-php

On Tue, 1 Mar 2005 11:27:15 -0800 (PST), operationsengineer1@yahoo.com
<operationsengineer1@yahoo.com> wrote:
> i also have the following set in my php.ini file...
> 
> display_errors = On
> 
> error_reporting = ~E_ALL

Doesn't the tilde mean 'everything but E_ALL'?

-- Mitch



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: PHP and Error Reporting
@ 2005-03-01 20:29  operationsengineer1@yahoo.com
  parent: Mitch Pirtle <mitch.pirtle@gmail.com>
  0 siblings, 0 replies; 6+ messages in thread

From: operationsengineer1@yahoo.com @ 2005-03-01 20:29 UTC (permalink / raw)
  To: Mitch Pirtle <mitch.pirtle@gmail.com>; pgsql-php


--- Mitch Pirtle <mitch.pirtle@gmail.com> wrote:

> On Tue, 1 Mar 2005 11:27:15 -0800 (PST),
> operationsengineer1@yahoo.com
> <operationsengineer1@yahoo.com> wrote:
> > i also have the following set in my php.ini
> file...
> > 
> > display_errors = On
> > 
> > error_reporting = ~E_ALL
> 
> Doesn't the tilde mean 'everything but E_ALL'?
> 
> -- Mitch

could be - i had it both with and without the tilde
and still come up with nothing.  i have to upload the
file to my online webserver and run it in order to get
error messages.  i can't win for losing on this one.

i'm wondering is something special has to be done for
a cgi and/or windowsxp and/or cygwin install that
isn't required for another type of install.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: PHP and Error Reporting
@ 2005-03-01 21:34  Thom Dyson <TDyson@sybex.com>
  parent: operationsengineer1@yahoo.com
  1 sibling, 1 reply; 6+ messages in thread

From: Thom Dyson @ 2005-03-01 21:34 UTC (permalink / raw)
  To: pgsql-php

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@postgresql.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?




^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: PHP and Error Reporting
@ 2005-03-02 05:35  graeme <graeme_foster@sherubtse.edu.bt>
  parent: Thom Dyson <TDyson@sybex.com>
  0 siblings, 0 replies; 6+ messages in thread

From: graeme @ 2005-03-02 05:35 UTC (permalink / raw)
  To: 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@postgresql.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@postgresql.org)
>
>
>  
>

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

Minna Antrim





^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2005-03-02 05:35 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-03-01 19:14 PHP and Error Reporting operationsengineer1@yahoo.com
2005-03-01 19:27 ` operationsengineer1@yahoo.com
2005-03-01 19:31   ` Mitch Pirtle <mitch.pirtle@gmail.com>
2005-03-01 20:29     ` operationsengineer1@yahoo.com
2005-03-01 21:34 ` Thom Dyson <TDyson@sybex.com>
2005-03-02 05:35   ` graeme <graeme_foster@sherubtse.edu.bt>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox