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

From: Date: Thu, 23 Jan 2003 12:00:01 +0000
Subject: Re: Removing the #!/usr... from cgi output?
References: 1 2  Groups: php.general php.general 
Request: Send a blank email to php-general+get-132800@lists.php.net to get a copy of this message
Colin McDonald wrote:
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
Hi there yes , the shebang ( the #!/usr/local/bin/php ) is not needed for use with dynamic webpages wether they be perl , php or whatever Shebangs are used only with shell based scripts. Your webserver should be configured to know what to do with the file by extension, e.g. .php files should be processed by php in apache This link describes how to configure a webserver to do this http://www.php.net/manual/en/install.unix.php ( a unix server , but its nearly the same for windows ) Thanks Neil

« previous php.general (#132800) next »