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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
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 > |
|
|||
|
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... |
|
|||
|
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. | `------------------------------------------------------------' |