RE: [PHP] Differentiate running from command line cf through web browser/server
| From: | Matthew Walker | Date: | Tue, 09 Oct 2001 19:02:40 +0000 |
| Subject: | RE: [PHP] Differentiate running from command line cf through web browser/server | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-70529@lists.php.net to get a copy of this message | ||
My guess would be that you should just check to see if the browser
headers are there. There's some pretty universal ones.
-----Original Message-----
From: DL Neil [mailto:PHPml@DandE.HomeChoice.co.uk]
Sent: Tuesday, October 09, 2001 12:38 PM
To: php-general@lists.php.net
Subject: [PHP] Differentiate running from command line cf through web
browser/server
Is someone able to offer advice/technique that enables a script to
detect if it has been initiated
from the command line or if it is running in a web browser/server?
Please advise,
=dn
PS my dev env is NTWusS 4.0, PHP4, MySQL, and Apache
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.282 / Virus Database: 150 - Release Date: 9/25/2001