User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915
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 ?