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/
-------------------------------------------------------------------------


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to