Re: How can I run php scripts from a shell script?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: How can I run php scripts from a shell script?

From: merlinfly <kiizaa@gmail.com>
Date: Sun Jun 19 2005 - 07:22:59 CEST

you can also set the script up like a normal shell script in the form
of...

-- start file --
#!/usr/local/bin/php -q
<?

/* php code here */

?>
-- end file --

the path to php can be take the form of

/usr/local/bin/php
/usr/bin/env php
/usr/bin/which php

etc.
they should all work out fine.

Good luck!
Received on Mon Oct 24 02:08:30 2005