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

Re: [cobalt-users] PHP from Command Line



Damion,

I tried this first...also does not work  =(


--- Damion C <brainscanner@xxxxxxxxxxx> wrote:
> 
> >
> >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
> >
> >_____________________________________
> >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
> 
> ---------
> 
> How about:
> 
> #!/usr/bin/php -q
> <?
> 
> print "Arg Count: " . $argc . "\n";
> print $argv[0] . " " . $argv[1];
> 
> ?>
> 
> Damion
> 
>
_________________________________________________________________
> Send and receive Hotmail on your mobile device:
> http://mobile.msn.com
> 
> _____________________________________
> 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