Stripping Content-type: text/html

From: Date: Wed, 21 Jun 2000 15:48:51 +0000
Subject: Stripping Content-type: text/html
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-2501@lists.php.net to get a copy of this message
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. -- Regards, | Why would anyone want to run an operating . | system that is open source and is developed Randy | by hundreds of hackers worldwide? Find out (redwards@golgotha.net) | why at http://www.golgotha.net/why-linux/

« previous php.general (#2501) next »