argv/argc problems in win2k

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tom Jones

    #1

    argv/argc problems in win2k

    Hi,

    I am using the .exe version of PHP and running stand alone on windows 2k ...
    most stuff works great but I can't read arguments off the command line. I
    found some references showing it working in the normal C way but I assume
    they referred to PHP in a Unix environment or maybe I need some includes.

    Anyone crack this nut?

    Tom


  • Keith Bowes

    #2
    Re: argv/argc problems in win2k

    Tom Jones wrote:[color=blue]
    > I am using the .exe version of PHP and running stand alone on windows 2k ...
    > most stuff works great but I can't read arguments off the command line. I
    > found some references showing it working in the normal C way but I assume
    > they referred to PHP in a Unix environment or maybe I need some includes.
    >[/color]

    You need to use the CLI version of PHP instead of the CGI version. It
    should either have a different name (such as php-cli.exe) or be in the
    cli directory. If you don't have this, you'll need to upgrade to a
    version that does (4.3.0+). See
    <http://www.php.net/manual/en/features.comman dline.php> for more
    information.

    Comment

    • Tom Jones

      #3
      Re: argv/argc problems in win2k

      Keith ... that is exactly what I needed ... thank you for your help ... in a
      sea of documentation you threw me a life line.

      Tom

      "Keith Bowes" <do.not@spam.me > wrote in message
      news:pwPEb.2144 $gD1.2109@fe01. ..[color=blue]
      > Tom Jones wrote:[color=green]
      > > I am using the .exe version of PHP and running stand alone on windows 2k[/color][/color]
      ....[color=blue][color=green]
      > > most stuff works great but I can't read arguments off the command line.[/color][/color]
      I[color=blue][color=green]
      > > found some references showing it working in the normal C way but I[/color][/color]
      assume[color=blue][color=green]
      > > they referred to PHP in a Unix environment or maybe I need some[/color][/color]
      includes.[color=blue][color=green]
      > >[/color]
      >
      > You need to use the CLI version of PHP instead of the CGI version. It
      > should either have a different name (such as php-cli.exe) or be in the
      > cli directory. If you don't have this, you'll need to upgrade to a
      > version that does (4.3.0+). See
      > <http://www.php.net/manual/en/features.comman dline.php> for more
      > information.
      >[/color]


      Comment

      Working...