Re: #!/usr/bin/php appears in the output
| From: | Analysis & Solutions | Date: | Wed, 07 Aug 2002 17:09:15 +0000 |
| Subject: | Re: #!/usr/bin/php appears in the output | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-111542@lists.php.net to get a copy of this message | ||
On Wed, Aug 07, 2002 at 04:50:37PM +0100, Matthew Baker wrote:
> When you are running scripts in the cgi-bin directory of a web server (set
> up so that they run as each user) then you start them with the line:
>
> #!/usr/bin/php
> but when the script is run with:
> http://www.myuser.myserver.com/cgi-bin/script.php
> then the first line sent back to the browser is #!/usr/bin/perl
Excuse me?! :) I assume you have a typo there saying perl.
So, what directives do you have in your .htaccess and/or httpd.conf file
that will make this run as CGI? For example, on my ISP, I need to put the
following in my .htaccess file:
AddType cgi-script .php
Also, what's the path of your PHP standalone binary? Are you sure it's
/usr/bin/php? For a test, what's the output of the following from a shell
prompt?
ls -l /usr/local/bin/php
--Dan
--
PHP classes that make web design easier
SQL Solution | Layout Solution | Form Solution
sqlsolution.info | layoutsolution.info | formsolution.info
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409