Shell PHP scripts will start with the line

#!/path/to/php -q

Regards

Jon

--
Jon Farmer  O?OČ
Systems Programmer, Entanet www.enta.net
Tel +44 (0)1952 428969 Mob +44 (0)7968 524175
PGP Key available, send blank email to [EMAIL PROTECTED]

-----Original Message-----
From: George E. Papadakis [mailto:[EMAIL PROTECTED]]
Sent: 26 August 2001 18:36
To: PHP List
Subject: [PHP] Shell or http?


Hi,

Is there any way to identify if a php script is running through a shell or
web?
Thanks in advance.


-- GeorgeP


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to