View Full Version : Detect if script called from command line

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

07-21-2007, 10: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