Re: Flags package for PHP?

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

 



Thanks for the advice!  I had initially tried it and couldn't seem to get
getopt2 working (and getopt was supposedly deprecated), but eventually found
a good example here: http://www.sitepoint.com/article/php-command-line-1/3/

On Thu, Oct 16, 2008 at 10:31 AM, Jim Lucas <lists@xxxxxxxxx> wrote:

> Waynn Lue wrote:
> > I'm running some command-line scripts that are taking more and more
> > arguments, and I'm wondering whether anyone's used a good flags package
> for
> > PHP?  Support for string/int/boolean arguments would be nice, otherwise
> I'll
> > just hack together my own.
> >
> > Thanks for any advice,
> > Waynn
> >
>
> I would maybe look into using a standard ini file and then use the
> parse_ini_file [1] function to bring it all together again.
>
> 1 - http://us2.php.net/manual/en/function.parse-ini-file.php
>
> --
> Jim Lucas
>
>   "Some men are born to greatness, some achieve greatness,
>       and some have greatness thrust upon them."
>
> Twelfth Night, Act II, Scene V
>    by William Shakespeare
>
>

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux