Re: Removing the #!/usr... from cgi output?

From: Date: Fri, 05 Jul 2002 11:50:32 +0000
Subject: Re: Removing the #!/usr... from cgi output?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-105624@lists.php.net to get a copy of this message
Got it to work! I removed that line and configured apache to serve certain filetypes through php cgi. (I have the php module installed, so i had to come up with a new ext.) But there should be some way to write the script with #!.. and not get it printed out anyway. Ah, well... Thanks. David Brannlund "Colin McDonald" <colin@tomoye.com> wrote in message news:3D258357.7030203@tomoye.com... > Did you try it without that line at all? > > I'm pretty sure you can setup apache (you are using apache right?) to > use /usr/.../bin/php for all files with the extension .php > > colin > > David Brannlund wrote: > > Example: > > > > #!/usr/local/bin/php > > <?php > > print "foo"; > > ?> > > > > becomes > > > > #!/usr/local/bin/php > > foo >

« previous php.general (#105624) next »