RE: [PHP-DEV] CGI and CLI
| From: | Robin Thellend | Date: | Wed, 18 Dec 2002 21:29:08 +0000 |
| Subject: | RE: [PHP-DEV] CGI and CLI | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-92623@lists.php.net to get a copy of this message | ||
On Wed, 18 Dec 2002, Derick Rethans wrote:
[...]
> I didn't say that it should be changed from php to php-cgi, as I do
> think that would be bad.
>
> Derick
Why don't you just add a simple check in the CLI code to exec() the CGI
binary if it is called as a CGI?
if(getenv("GATEWAY_INTERFACE") != NULL)
execv("/path/to/php-cgi", argv);
or something. Call it a transition path until people get used to using
php-cgi.
I've been reading arguments on this very topic for weeks now. I would hate
to see this delay the release of 4.3 any further.
Respectfully,
/Robin