Re: CLI versus apache module

From: Date: Wed, 15 Mar 2006 23:51:00 +0000
Subject: Re: CLI versus apache module
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-231984@lists.php.net to get a copy of this message
I have a.php includes b.php . b.php is used by other pages that are served through apache. a.php used to be started through apache, but now need to be started from command line. How do I know if a php file is running as apache module or as CLI ?
http://us3.php.net/manual/en/function.php-sapi-name.php -philip

« previous php.general (#231984) next »