i took a look at the man pages and php docs. seems straight forward. give me
a few days and i'll report back to the list. actually the code that i have
can handle long as well as short args e.g.  -f or --foo , as well as being
able to specify whether an argument is optional or required. the code is
plain vanilla C so it can be used for all supported platforms.

l0t3k

"Hartmut Holzgraefe" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Kjartan Mannes wrote:
> > The NEWS file mentions a new function getopt(), but I can not get this
> > to work under windows.
> >
> >   Fatal error: Call to undefined function:  getopt()
> >
> > My guess is that getopt() isn't a standard system function, but PHP
> > mimics the function as it handles command line arguments. Is this
> > intentional or just an oversight?
>
> for now it is Unix-only
>
> ( Actualy it is protected by #if HAVE_GETOPT and configure
>    deals with it checking for getopt() in libc.
>    On Windows there is nothing like configure so this has
>    to be solved in a different way. )
>
> any Win32 volunteers?
>
> --
> Six Offene Systeme GmbH     http://www.six.de/
> i.A. Hartmut Holzgraefe
> Email: [EMAIL PROTECTED]
> Tel.:  +49-711-99091-77
>



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to