Re: CGI and CLI

From: Date: Wed, 18 Dec 2002 21:38:31 +0000
Subject: Re: CGI and CLI
References: 1 2 3  Groups: php.dev 
Request: Send a blank email to php-dev+get-92627@lists.php.net to get a copy of this message
Robin Thellend wrote:
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);
Lets not compound one bad idea with another. Shane

« previous php.dev (#92627) next »