Re: Stripping Content-type: text/html
| From: | Andrei Zmievski | Date: | Wed, 21 Jun 2000 15:48:16 +0000 |
| Subject: | Re: Stripping Content-type: text/html | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-2502@lists.php.net to get a copy of this message | ||
On Wed, 21 Jun 2000, Randy Edwards wrote:
> I've got a newbie question I was hoping someone can help me with.
>
> I've want to run a program and output the results. So I'm doing
> something like:
>
> $output =
fortune;
> echo $output;
>
> But of course I get the "Content-type: text/html" in the browser. I can
> strip the Content... string from $output, but that seems like a kludgy
> solution. Have I missed a useful function? Anyone want to whack me with a
> clue bat as the best approach to take for this? TIA.
If you run php from command line, you can use -q option to omit the
headers.
-Andrei
The 3 great virtues of a programmer:
Laziness, Impatience, and Hubris.
--Larry Wall