does anyone know how to tell if a PHP scrip is being executed from the command line not a server HTTP request??

From: Date: Sun, 06 Jul 2003 08:48:40 +0000
Subject: does anyone know how to tell if a PHP scrip is being executed from the command line not a server HTTP request??
Groups: php.general 
Request: Send a blank email to php-general+get-154114@lists.php.net to get a copy of this message
I am trying to write a script but for security I need to verify that it is not executed by a web server. At this point I have just placed it outside the htdocs tree but would like to build into the script a test to die if it is being executed by a web server. Thanks Jeff Means CIO for MeansPC meaje@meanspc.com

« previous php.general (#154114) next »