It's simple.  Find your php binary (or build one if you don't have
one)... I think 'which php' will find it.

Then, write a php file with '#!/path/to/php -q' at the top.  Use any one
of the various execution methods to run your programs.  Done!

I've been doing this for quite a while.  I find it easier than
'traditional' shell scripting =>

More questions?  Ask!
Ben

-----Original Message-----
From: Kevin Pratt [mailto:[EMAIL PROTECTED]] 
Sent: Monday, July 09, 2001 10:02 AM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP as a shell script

Can anyone direct me to a place where I can read up on how to use php as
a
shell scripting language?


Thanks Kevin
Ouelong Group
www.ouelong.com


-- 
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