By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,197 Members | 1,151 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,197 IT Pros & Developers. It's quick & easy.

command line or not???

P: n/a

Hello,

What's the best way to check whether script is run from command line or by
web server?

--
Greets
adeon
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Adam Dyga wrote:
What's the best way to check whether script is run from command line or by
web server?


I'd use php_sapi_name()
http://www.php.net/php_sapi_name
--
--= my mail box only accepts =--
--= Content-Type: text/plain =--
--= Size below 10001 bytes =--
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.