try using fopen();

http://www.php.net/manual/en/function.fopen.php

----- Original Message -----
From: "Joshua Moore-Oliva" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to