Re: cgi bug workaround
| From: | James Peter Gregory | Date: | Fri, 05 Oct 2001 08:58:47 +0000 |
| Subject: | Re: cgi bug workaround | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-70051@lists.php.net to get a copy of this message | ||
On Fri, 5 Oct 2001, David Robley wrote:
> On Fri, 5 Oct 2001 15:15, James Peter Gregory wrote:
> > hi all,
> >
> > I've been asked to do some work on some servers where php can only run
> > as cgi. Unfortunately it seems that php has a bug which means that
> >
> > #!/usr/local/bin/php
> >
> > gets printed out at the top of each page if I do this.
> >
> > Are there any workarounds for this? Is it fixed in the cvs versions?
> >
> > thanks,
> >
> > James.
>
> You should only need the #! construct if you are running that file as a
> php script from the shell/cron/whatever. If you are only serving pages
> via a web server (eg using WN or somesush) you use the server method to
> define those scripts as to be parsed by php and you don't need the #!
I understand that. Unfortunately I'm not the one administrating this
computer so we're stuck with having to find a work around for the problem.
That is, I can't change the apache config at all. They'll only let us use
cgi.
but thanks all the same.
James.
>
> --
> David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
> CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA
>
> Would I ask you a rhetorical question?
>
--
"I'm not vegetarian becuase I love animals; I'm vegetarian because I hate
plants." - unknown.