Connecting Tech Pros Worldwide Help | Site Map

CLI and Windows

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 17th, 2005, 09:19 AM
yawnmoth
Guest
 
Posts: n/a
Default CLI and Windows

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, 09:19 AM
Nik Coughin
Guest
 
Posts: n/a
Default 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.


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.