Re: Command line php output redirection.

From: Date: Wed, 25 Jun 2003 23:03:17 +0000
Subject: Re: Command line php output redirection.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-152893@lists.php.net to get a copy of this message
try using fopen(); http://www.php.net/manual/en/function.fopen.php ----- Original Message ----- From: "Joshua Moore-Oliva" <josh@chatgris.com> To: <php-general@lists.php.net> Sent: Wednesday, June 25, 2003 3:37 PM Subject: [PHP] Command line php output redirection. > This is really scaring me as file redirection is one of the basic things in > linux.. anyways > > I have a php script that outputs to stdout using echo.. when I run it using > > php parser.php > > I can see the output no problem. However, when I attempted to redirect to a > file using > > php parser.php > temp > > temp only contains > > Content-type: text/html > X-Powered-By: PHP/4.3.2 > > > Help?? > > Thanks, Josh. > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#152893) next »