【发布时间】:2014-03-31 00:17:45
【问题描述】:
他们文档中的命令说要运行命令:
C:\php>php go-pear.phar
Could not open input file: go-pear.phar
根据Installation Documentsgo-pear.bat文件应该位于php文件(c:\php)的根目录下。我已经下载了php-5.5.9-Win32-VC11-x64 与我的x64 版本的Apache 2.4 一起使用
我最接近的是:phar.phar.bat。
尝试运行时,我得到以下信息:
C:\php>"C:\php\php.exe" "C:\php\pharcommand.phar"
No command given, check C:\php\pharcommand.phar help
或
C:\php>php phar.phar.bat
"%~dp0php.exe" "%~dp0pharcommand.phar" %*
【问题讨论】:
-
您是否尝试过在系统范围内搜索“php.exe”?
-
是的,php 就在那里。它工作得很好。
PHP 5.5.9 (cli) (built: Feb 5 2014 11:04:07)