[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: Daren Cotter <daren_cotter@xxxxxxxxx>
- Date: Wed Sep 25 12:35:01 2002
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
Gerald,
Thanks, but this does NOT work...
<?
print "Arg Count: " . $argc . "\n";
print $argv[0] . " " . $argv[1];
?>
php -c /etc/httpd/php.ini -f test.php blah blah
--- Gerald Waugh <gwaugh@xxxxxxxxxxxxxxxxxxxxxxx>
wrote:
> 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
>
> _____________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To subscribe/unsubscribe, or to SEARCH THE ARCHIVES,
> go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users
__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com