Re: CGI-PHP (dumb newbie strikes again)
| From: | Tom Harris | Date: | Fri, 05 Jan 2001 22:37:53 +0000 |
| Subject: | Re: CGI-PHP (dumb newbie strikes again) | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-32964@lists.php.net to get a copy of this message | ||
Thanks. It looks like that was part of the problem.
Now however when I run the script I get
X-Powered-By: PHP/4.0.3pl1
Content-type: text/html
phpinfo();
Obviously this is not what I wanted. Can someone tell me what I'm doing
wrong now?
Thanks!
A Complete Luser <acompleteluser@penguinpowered.org.uk> wrote in message
news:m3wvc9skaf.fsf@brute.penguinpowered.org.uk...
> "Tom Harris" <stry_cat@yahoo.com> writes:
>
> > 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.
>
> The error you are getting normally implies that the shell specified by
> the #! is not available.
>
> Does /usr/bin/php exist, and are the permissions on it executable ?
>
> --
> A Complete Luser <acompleteluser@penguinpowered.org.uk>
>
> --
> 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
>