RE: [PHP] PHP as a shell script
| From: | Ben Bleything | Date: | Mon, 09 Jul 2001 17:03:53 +0000 |
| Subject: | RE: [PHP] PHP as a shell script | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-56974@lists.php.net to get a copy of this message | ||
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:kevin@ouelong.com]
Sent: Monday, July 09, 2001 10:02 AM
To: php-general@lists.php.net
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: 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