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
$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:[EMAIL PROTECTED]]
Sent: Friday, December 07, 2001 10:01 AM
To: PHP list
Subject: [PHP] Sending PHP script
2 matches
Mail list logo