FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Firefox PHP error report
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Firefox PHP error report [message #173352] Mon, 04 April 2011 14:43 Go to next message
bruceaj is currently offline  bruceaj
Messages: 30
Registered: September 2010
Karma: 0
Member
I seem to recall that there was a set options in Firefox so that PHP
errors would be reported. Appreciate it greatly if someone could tell
me how to set these options..

Thanks..

Bruce
Re: Firefox PHP error report [message #173353 is a reply to message #173352] Mon, 04 April 2011 14:51 Go to previous messageGo to next message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma: 0
Senior Member
bruceaj wrote:
> I seem to recall that there was a set options in Firefox so that PHP
> errors would be reported. Appreciate it greatly if someone could tell
> me how to set these options..
>
Not possible since PHP errors do not propagate past the server, except
as obscure and broken HTML perhaps.

If you want to turn reporting on, on *that*, its tools-> error console,
typically.

> Thanks..
>
> Bruce
Re: Firefox PHP error report [message #173354 is a reply to message #173352] Mon, 04 April 2011 15:27 Go to previous messageGo to next message
alvaro.NOSPAMTHANX is currently offline  alvaro.NOSPAMTHANX
Messages: 277
Registered: September 2010
Karma: 0
Senior Member
El 04/04/2011 16:43, bruceaj escribió/wrote:
> I seem to recall that there was a set options in Firefox so that PHP
> errors would be reported. Appreciate it greatly if someone could tell
> me how to set these options..

There isn't such a option for obvious physical reasons. What you
probably recall is FirePHP or some similar invention:

http://www.firephp.org/

But of course it's not just an option you enable on the client: you need
to install all the stack and explicitly send error messages from your
PHP code.


--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--
Re: Firefox PHP error report [message #173355 is a reply to message #173352] Mon, 04 April 2011 16:10 Go to previous messageGo to next message
Robert Heller is currently offline  Robert Heller
Messages: 60
Registered: December 2010
Karma: 0
Member
At Mon, 4 Apr 2011 07:43:16 -0700 (PDT) bruceaj <bruceaj(at)bellsouth(dot)net> wrote:

>
> I seem to recall that there was a set options in Firefox so that PHP
> errors would be reported. Appreciate it greatly if someone could tell
> me how to set these options..

What you want to do is edit /etc/php.ini *on the server* to include:

; Print out errors (as a part of the output). For production web sites,
; you're strongly encouraged to turn this feature off, and use error logging
; instead (see below). Keeping display_errors enabled on a production web site
; may reveal security information to end users, such as file paths on your Web
; server, your database schema or other information.
display_errors = On

; Even when display_errors is on, errors that occur during PHP's startup
; sequence are not displayed. It's strongly recommended to keep
; display_startup_errors off, except for when debugging.
display_startup_errors = On

Note the warnings. The above is from a developmental system that is
not exposed to the public Internet (actually my Linux desktop system,
that has Apache, PHP, MySQL, etc. installed and has a mirror of my
company website on it).


>
> Thanks..
>
> Bruce
>

--
Robert Heller -- 978-544-6933 / heller(at)deepsoft(dot)com
Deepwoods Software -- http://www.deepsoft.com/
() ascii ribbon campaign -- against html e-mail
/\ www.asciiribbon.org -- against proprietary attachments
Re: Firefox PHP error report [message #173357 is a reply to message #173352] Mon, 04 April 2011 18:27 Go to previous messageGo to next message
crankypuss is currently offline  crankypuss
Messages: 147
Registered: March 2011
Karma: 0
Senior Member
bruceaj <bruceaj(at)bellsouth(dot)net> wrote:

> I seem to recall that there was a set options in Firefox so that PHP
> errors would be reported. Appreciate it greatly if someone could tell
> me how to set these options..
>
> Thanks..
>
> Bruce

There's a PHP setting that controls the level of error reporting,
determined by php.ini or dynamically set via error_reporting().

You might be thinking of the FireFox "live headers" plugin doodad that
will show you the http headers returned by any server, not just one
that happens to be running PHP.

But nekkid FireFox can't tell the PHP interpreter on the server what
errors it ought to report.

--
no aluminum siding offers today
Re: Firefox PHP error report [message #173358 is a reply to message #173357] Mon, 04 April 2011 19:13 Go to previous message
bruceaj is currently offline  bruceaj
Messages: 30
Registered: September 2010
Karma: 0
Member
On Apr 4, 2:27 pm, crankypuss <n...@email.thanks> wrote:
> bruceaj <bruc...@bellsouth.net> wrote:
>> I seem to recall that there was a set options in Firefox so that PHP
>> errors would be reported. Appreciate it greatly if someone could tell
>> me how to set these options..
>
>> Thanks..
>
>> Bruce
>
> There's a PHP setting that controls the level of error reporting,
> determined by php.ini or dynamically set via error_reporting().
>
> You might be thinking of the FireFox "live headers" plugin doodad that
> will show you the http headers returned by any server, not just one
> that happens to be running PHP.
>
> But nekkid FireFox can't tell the PHP interpreter on the server what
> errors it ought to report.
>
> --
> no aluminum siding offers today

Thanks to all. I think I was "Thinking" about the php.ini settings...

Appreciate all the responses..

Bruce
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Hourly script
Next Topic: Using imagettfbbox with Arial Bold
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 16:07:30 GMT 2024

Total time taken to generate the page: 0.02726 seconds