Re: PHP Standalone scripting?
| From: | Jeff Wolkove | Date: | Tue, 18 Jul 2000 04:45:08 +0000 |
| Subject: | Re: PHP Standalone scripting? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-7028@lists.php.net to get a copy of this message | ||
Looks like I'm in business! Thanks to all who replied.
Jeff
Rasmus Lerdorf wrote:
>
> > I was wondering if there's a way to run php scripts
> > on a standalone basis, as you would run a PERL script
> > or C program? I would like to use PHP since I have
> > written a lot of code that could be re-used to write
> > some simple scripts that can run from cron or from a shell
> > to do some database maintenance, send e-mails, etc.
> >
> > If not, are there any plans to build a standalone run-time
> > interpreter for PHP?
>
> ./configure
> make
> make install
>
> This copies a 'php' binary to /usr/local/bin
>
> Then a typical standalone PHP script would look like this:
>
> #!/usr/local/bin/php -q
> <?
> echo "Hello World";
> ?>
>
> -Rasmus