[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] PHP from Command Line
- Subject: Re: [cobalt-users] PHP from Command Line
- From: Gerald Waugh <gwaugh@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed Sep 25 12:29:01 2002
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
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