Php Error Output Redirection

This is a discussion on Php Error Output Redirection within the PHP General forums, part of the PHP Programming Forums category; Hi, Is anyone know that errors generated by php (like Notice: Uninitialized string offset: 0 in ...) may stored in a ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-18-2006
Sancar Saran
 
Posts: n/a
Default Php Error Output Redirection

Hi,

Is anyone know that errors generated by php (like Notice: Uninitialized string
offset: 0 in ...) may stored in a php variable and print out later ?

I want to put them some other location and show them in a debug window. I do
this for my error reporting and I could not manage how to do with php
messages.

Regards

Sancar
Reply With Quote
  #2 (permalink)  
Old 12-18-2006
Saqib Ali
 
Posts: n/a
Default Re: [PHP] Php Error Output Redirection

Use the set_error_handle function:
http://us2.php.net/manual/en/functio...or-handler.php

saqib
http://www.full-disk-encryption.net

On 12/18/06, Sancar Saran <sancar.saran@evodot.com> wrote:
> Hi,
>
> Is anyone know that errors generated by php (like Notice: Uninitialized string
> offset: 0 in ...) may stored in a php variable and print out later ?
>
> I want to put them some other location and show them in a debug window. I do
> this for my error reporting and I could not manage how to do with php
> messages.
>
> Regards
>
> Sancar
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



--
Saqib Ali, CISSP, ISSAP
http://www.full-disk-encryption.net
Reply With Quote
  #3 (permalink)  
Old 12-18-2006
Jochem Maas
 
Posts: n/a
Default Re: [PHP] Php Error Output Redirection

Sancar Saran wrote:
> Hi,
>
> Is anyone know that errors generated by php (like Notice: Uninitialized string
> offset: 0 in ...) may stored in a php variable and print out later ?
>
> I want to put them some other location and show them in a debug window. I do
> this for my error reporting and I could not manage how to do with php
> messages.


congratulations, you are the 1,000,000th php user not to bother
so much as think of looking in the manual:

http://php.net/manual/en/ref.errorfunc.php
http://php.net/manual/en/language.op...rorcontrol.php
http://php.net/manual/en/function.error-reporting.php
http://php.net/manual/en/function.set-error-handler.php
http://php.net/manual/en/function.error-get-last.php

>
> Regards
>
> Sancar
>

Reply With Quote
  #4 (permalink)  
Old 12-18-2006
Sancar Saran
 
Posts: n/a
Default Re: [PHP] Php Error Output Redirection

On Monday 18 December 2006 15:39, Jochem Maas wrote:
> Sancar Saran wrote:
> > Hi,
> >
> > Is anyone know that errors generated by php (like Notice: Uninitialized
> > string offset: 0 in ...) may stored in a php variable and print out later
> > ?
> >
> > I want to put them some other location and show them in a debug window. I
> > do this for my error reporting and I could not manage how to do with php
> > messages.

>
> congratulations, you are the 1,000,000th php user not to bother
> so much as think of looking in the manual:
>
> http://php.net/manual/en/ref.errorfunc.php
> http://php.net/manual/en/language.op...rorcontrol.php
> http://php.net/manual/en/function.error-reporting.php
> http://php.net/manual/en/function.set-error-handler.php
> http://php.net/manual/en/function.error-get-last.php
>
> > Regards
> >
> > Sancar


Oh really?
so where is my spy-adware windows trojan prize ?

Thank you Jochem, asking you always easy than the searching documentation and
I always wonder what can I do without you and your great comments :).

I promise, next time I'll try to do better.

Really !!! ;)

Sancar...
Reply With Quote
  #5 (permalink)  
Old 12-18-2006
Robert Cummings
 
Posts: n/a
Default Re: [PHP] Php Error Output Redirection

On Mon, 2006-12-18 at 20:55 +0200, Sancar Saran wrote:
>
> Oh really?
> so where is my spy-adware windows trojan prize ?
>
> Thank you Jochem, asking you always easy than the searching documentation and
> I always wonder what can I do without you and your great comments :).
>
> I promise, next time I'll try to do better.


<ominousTone>We'll be watching...</ominousTone>

> Really !!! ;)


<ominousTone>... ...</ominousTone>


--
..------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:26 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0