Server side development
> Detect if script called from command line
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.
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.