Re: Headers problem on the PHP4.0.2 CGI

From: Date: Tue, 05 Sep 2000 01:06:17 +0000
Subject: Re: Headers problem on the PHP4.0.2 CGI
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-15194@lists.php.net to get a copy of this message
On 4 Sep, Duccio Gasparri wrote: > Hi all, I've installed PHP4.0.2 as a CGI because i needed to read/write > files outside the nobody permissions. My script "a" may look like: > > #!/usr/local/bin/php > > <?php > echo "Hello world!"; > ?> > > but, every time I run it, even from a web page as a SSI or from a > module_php page, it returns: > ********** > X-Powered-By: PHP/4.0.2 > Content-type: text/html > > Hello world! > ******** > > What if i DO NOT WANT the headers? I'm even thinking about recompiling the > sources and erasing those two lines, but is there a way to do it more... > elegantly? Something to pass to the php, some command or some config setting??? > > Thank you in advance, > Duccio. php -h will show an elegant solution -- David Robley | WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA

« previous php.general (#15194) next »