Re: [PHP] Re: Passing args to a PHP script from the command line

2004-06-10 Thread Aaron Wormus
Ben Ramsey wrote: Did I say the wrong package? Oops. GetOpts does the job, but GetArgs is brand spanking new and much more configurable. However, unless you already use other PEAR packages I would think twice about loading the big Pear codebase just to parse a few commandline options. -- Aaron

Re: [PHP] Re: Passing args to a PHP script from the command line

2004-06-10 Thread Ben Ramsey
Aaron Wormus wrote: Ben Ramsey wrote: > You may also want to check out PEAR::Console_Getopt > > http://pear.php.net/package/Console_Getopt or better yet PEAR::Console_GetArgs http://pear.php.net/package/Console_Getargs Did I say the wrong package? Oops. Both are for the command line, but Aaron'

Re: [PHP] Re: Passing args to a PHP script from the command line

2004-06-10 Thread Aaron Wormus
Ben Ramsey wrote: > You may also want to check out PEAR::Console_Getopt > > http://pear.php.net/package/Console_Getopt or better yet PEAR::Console_GetArgs http://pear.php.net/package/Console_Getargs -- Aaron Wormus -- Pears and Pickles Served fresh every day at http:/

[PHP] Re: Passing args to a PHP script from the command line

2004-06-10 Thread Ben Ramsey
You may also want to check out PEAR::Console_Getopt http://pear.php.net/package/Console_Getopt Phil Ewington - 43 Plc wrote: Hi All, Can anyone tell me how to pass arguments to a PHP script from the command line? I know I need to use the -args option but how exactly, I have tried the following... /