Re: PHP Standalone scripting?

From: Date: Mon, 17 Jul 2000 07:18:04 +0000
Subject: Re: PHP Standalone scripting?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-6881@lists.php.net to get a copy of this message
> 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

« previous php.general (#6881) next »