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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php