On Thursday 05 February 2004 12:26 am, Rasmus Lerdorf wrote:
> #!/usr/local/bin/php-cgi -d include_path=/path
> ...
> ?>
>
> and have it work both from the command line and from a web context.
Just a side note.
This does not work on most systems due to kernel limitation on shebang l
On Thu, 5 Feb 2004, Jon Parise wrote:
> Some additional archaeology says that this logic goes back to PHP 3
> (main.c revision 1.354, from 5 years, 11 months ago):
>
> http://cvs.php.net/diff.php/php3/main.c?login=2&r1=1.354&r2=1.355&ty=h
>
> I was kind of hoping it was something you had commit
On Wed, Feb 04, 2004 at 03:26:41PM -0800, Rasmus Lerdorf wrote:
> The point of the question here is if anybody remembers why we decided not
> to parse command line args for the cgi version?
...
> As far as I can tell this wouldn't conflict with anything, but somebody at
> some point must have
In our SAPI cgi we have a check along these lines:
if (getenv("SERVER_SOFTWARE")
|| getenv("SERVER_NAME")
|| getenv("GATEWAY_INTERFACE")
|| getenv("REQUEST_METHOD")) {
cgi = 1;
}
if(!cgi) getopt(...)
As in, we do not parse command line args for the cgi