Computing.Net > Forums > Programming > PHP stderr

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

PHP stderr

Reply to Message Icon

Name: ShaqDiesel
Date: July 13, 2006 at 11:58:50 Pacific
OS: NYB
CPU/Ram: NYB
Product: NYB
Comment:

How do you direct something to stderr in php, as opposed to the default stdout? Thank you.



Sponsored Link
Ads by Google

Response Number 1
Name: tonysathre
Date: July 13, 2006 at 14:05:08 Pacific
Reply:

What are you trying to redirect? An error, or something else?

I'm not sure in Windows, but in Unix/Linux Bash you can use > to redirect to stdout and 2> to redirect to stderr.

I have NOT lost my mind — I have it backed up on tape somewhere


0

Response Number 2
Name: ShaqDiesel
Date: July 13, 2006 at 16:21:50 Pacific
Reply:

If PHP throws an exception, I would like that to go to std err so I can do the 2>. Or, I would like to catch the error somehow and append it to a file.


0

Response Number 3
Name: anonproxy
Date: July 14, 2006 at 17:02:21 Pacific
Reply:

Configure your own error handler: Error Handling in PHP.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: PHP stderr

:PHP:{FigureThisOut} www.computing.net/answers/programming/phpfigurethisout/3809.html

PHP Parse Errror - Can you see it? www.computing.net/answers/programming/php-parse-errror-can-you-see-it/7947.html

Php + encrypted password www.computing.net/answers/programming/php-encrypted-password/8305.html