...

View Full Version : Detect if script called from command line



bauhsoj
07-21-2007, 04:05 AM
How would I detect if a script is called from the command line and not the browser?

GJay
07-21-2007, 11:34 AM
checking whether $argc and/or $argv aren't null would seem to do it.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum