Re: Running PHP scripts from the shell
| From: | Jason Wong | Date: | Mon, 11 Mar 2002 13:13:44 +0000 |
| Subject: | Re: Running PHP scripts from the shell | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-88002@lists.php.net to get a copy of this message | ||
On Monday 11 March 2002 20:18, andy thomas wrote:
> Just wondering but is there any way PHP scripts can be run from the
> command line from a standard Unix shell like, for example, perl rather
> than being invoked via a browser and running web server, etc?
>
> Such a feature would be very nice as there are a number of things that
> can be done better from PHP than from a shell script - MySQL access being
> one of them.
PHP can be compiled as a stand-alone program (for use as CGI & thus shell
scripting). See manual, "Installation" for details.
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
/*
"I've seen the forgeries I've sent out."
-- John F. Haugh II (jfh@rpp386.Dallas.TX.US), about forging net news articles
*/