Re: CGI and CLI
| From: | Derick Rethans | Date: | Thu, 19 Dec 2002 06:24:40 +0000 |
| Subject: | Re: CGI and CLI | ||
| References: | 1 2 3 4 5 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-92655@lists.php.net to get a copy of this message | ||
On Wed, 18 Dec 2002, Shane Caraveo wrote:
> No. At the most, if anything, CLI should output an error message:
>
> if(getenv("GATEWAY_INTERFACE") != NULL) {
> printf("This is the PHP CLI binary, please configure your server to
> use the correct PHP CGI binary.");
> exit(1);
> }
Don't forget the HTTP headers :)
Derick
--
-------------------------------------------------------------------------
Derick Rethans http://derickrethans.nl/
PHP Magazine - PHP Magazine for Professionals http://php-mag.net/
-------------------------------------------------------------------------