$fp = fopen("php://stderr", "w");
fputs($fp, "error message");

never tried it, but that's what it says in the manual (look at fopen())

-----Original Message-----
From: Ken [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 07, 2001 10:01 AM
To: PHP list
Subject: [PHP] Sending PHP script output to stderr?

Is there a way to get a PHP script to return text that would be directed to
stderr instead of to stdout?

This is for a PHP script that I'm running via cron, and I don't need its
output (which at the least includes the annoying "Content-type: text/html"
at the top), but I would like to know about errors.


PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to