[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] PHP from Command Line



On Wed, 25 Sep 2002, Daren Cotter wrote:

> I'm trying to setup a PHP script from the command
> line, and I'm trying to pass arguments to it. Sample:
>
> <?
> $test = $argv[1];
> print $test;
>
> $demo = "This Works";
> print $demo;
> ?>
>
php -c /etc/httpd/php.ini test.php blah

Geald
--
http://frontstreetnetworks.com | http://raqware.com
Front Street Networks LLC  | Phone: +1 203-785-0699
229 Front Street, Ste. C, New Haven, CT. 06513-3203