Re: running php as cgi script
| From: | Marco Tabini | Date: | Sat, 16 Nov 2002 04:11:53 +0000 |
| Subject: | Re: running php as cgi script | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-124694@lists.php.net to get a copy of this message | ||
If you look at the error he's getting, I think there's something a bit
more critical than the PHP tags... although you're right and I missed
that :-( d'oh!
Marco
On Fri, 2002-11-15 at 23:20, @ Edwin wrote:
>
> "Scott" <gildedpage@comcast.net> wrote:
>
> > I'm trying to run a simple test php script as a cgi script on my ISP's
> server
> > and haven't been able to get it to work, although according them it is
> > possible.
> >
> > I have an example from a book which gives the following steps:
> >
> > 1. Put the script in the cgi-bin
> > 2. run chmod 755
> > 3. include "#!/usr/bin/php" at the top. (I have checked that this is the
> > correct location of php on the server)
> >
> > The test script they give looks like this:
> >
> > #!/usr/bin/php
> >
> > echo "This is a small CGI program."
> >
> > Doesn't look like the usual php syntax to me,
>
> Maybe that's why it doesn't work ;)
>
> You should use the <?php ?> tags.
>
> - E
>
> ...[snip]...
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>