Connecting Tech Pros Worldwide Help | Site Map

CLI and Windows

  #1  
Old July 17th, 2005, 10:19 AM
yawnmoth
Guest
 
Posts: n/a
The portion of the PHP manual entitled "Using PHP from the command
line"
states that "The CGI SAPI supports the CLI SAPI behaviour by means of
the -C switch when run from the command line.":

http://us2.php.net/features.commandline

However, "php -h" says of the -C switch, "Do not chdir to the script's
directory".

Further, running php -Cr "echo 'test';" results in an error saying
that
the -r switch doesn't exist, even though it should if it were acting
like the CLI version.

This, coupled with the fact that the Windows installer doesn't seem to
install a seperate CLI exe means that, unless I'm missing something,
CLI isn't something that can be used on Windows, contrary to what the
docs say.

Am I missing something?
  #2  
Old July 17th, 2005, 10:19 AM
Nik Coughin
Guest
 
Posts: n/a

re: CLI and Windows


yawnmoth wrote:[color=blue]
> The portion of the PHP manual entitled "Using PHP from the command
> line"
> states that "The CGI SAPI supports the CLI SAPI behaviour by means of
> the -C switch when run from the command line.":
>
> http://us2.php.net/features.commandline
>
> However, "php -h" says of the -C switch, "Do not chdir to the script's
> directory".
>
> Further, running php -Cr "echo 'test';" results in an error saying
> that
> the -r switch doesn't exist, even though it should if it were acting
> like the CLI version.
>
> This, coupled with the fact that the Windows installer doesn't seem to
> install a seperate CLI exe means that, unless I'm missing something,
> CLI isn't something that can be used on Windows, contrary to what the
> docs say.
>
> Am I missing something?[/color]

I use the CLI under Windows all the time. In <5 it was under it's own
folder called something like CLI, and with 5 php.exe is the CLI.


Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
C++ vs. C# (new to windows programming)... Volker Hetzer answers 4 April 27th, 2006 01:58 PM
how to use MFC in C++/CLI ma answers 1 March 16th, 2006 05:25 PM
Is C++/CLI gaining any traction??? Don Kim answers 81 March 13th, 2006 10:55 PM
Qn: Socket performance under Windows Colin Brown answers 0 July 18th, 2005 06:29 AM