RE: [PHP] CGI-PHP (dumb newbie strikes again)
| From: | o dot cook at etoncollege dot org dot uk | Date: | Sat, 06 Jan 2001 16:25:52 +0000 |
| Subject: | RE: [PHP] CGI-PHP (dumb newbie strikes again) | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-33034@lists.php.net to get a copy of this message | ||
did you chmod u+x myphptest.php?
is /usr/bin/php really the location of the php binary (try which php)
Ollie
> -----Original Message-----
> From: Tom Harris [mailto:stry_cat@yahoo.com]
> Sent: 05 January 2001 22:21
> To: php-general@lists.php.net
> Subject: [PHP] CGI-PHP (dumb newbie strikes again)
>
>
> This is another dumb question.
> I complied php as a cgi so I could run scripts from the shell.
>
> Just for a test I tired the following script name myphptest.php
>
> #!/usr/bin/php
> phpinfo();
>
> Unfortunately when I type ./myphptest.php at the prompt I'm told
>
> ./myphptest.php: Command not found.
>
> I've tired several really simple scripts and they all come
> back the same.
>
> Can someone tell me what I'm doing wrong??
>
> Thanks
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
>
>