RE: [PHP] Sending PHP script output to stderr?

From: Date: Thu, 06 Dec 2001 23:03:06 +0000
Subject: RE: [PHP] Sending PHP script output to stderr?
Groups: php.general 
Request: Send a blank email to php-general+get-76964@lists.php.net to get a copy of this message
$fp = fopen("php://stderr", "w"); fputs($fp, "error message"); fclose($fp); never tried it, but that's what it says in the manual (look at fopen()) -----Original Message----- From: Ken [mailto:kenzo@free-music.com] 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. Thanks, Ken -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#76964) next »