[PHP-DEV] #! scripts as PHP scripts

2001-02-05 Thread Zeev Suraski
The current CGI implementation supports a different way of running PHP scripts as if they were executables, using #!/usr/local/bin/php style header. The current implementation also inconsistently handles files of that format that are executed as regular PHP scripts (i.e., under the Apache

Re: [PHP-DEV] #! scripts as PHP scripts

2001-02-05 Thread Andrei Zmievski
At 02:31 AM 2/6/01 +0200, Zeev Suraski wrote: In my opinion - if people want to run such files as CGI's, they should be using .cgi extension and +x them, and not run them through the php.exe CGI as .php files. At any rate, we need to decide which of the two behaviors is correct, because right

Re: [PHP-DEV] #! scripts as PHP scripts

2001-02-05 Thread Zeev Suraski
At 02:36 6/2/2001, Andrei Zmievski wrote: At 02:31 AM 2/6/01 +0200, Zeev Suraski wrote: In my opinion - if people want to run such files as CGI's, they should be using .cgi extension and +x them, and not run them through the php.exe CGI as .php files. At any rate, we need to decide which of