Re: CGI and CLI

From: Date: Wed, 18 Dec 2002 21:39:26 +0000
Subject: Re: CGI and CLI
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-92629@lists.php.net to get a copy of this message
I'm with Shane, that sounds like a really poor idea. On Wednesday, December 18, 2002, at 04:38 PM, Shane Caraveo wrote:
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 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.dev (#92629) next »