The command from their documentation says to run the command:

他们文档中的命令说运行命令:

C:\php>php go-pear.phar
Could not open input file: go-pear.phar

According to Installation Documents the go-pear.bat file should be located in the root of the php files (c:\php). I have downloaded php-5.5.9-Win32-VC11-x64 to go with my x64 version of Apache 2.4

根据安装文件的要求。bat文件应该位于php文件的根目录(c:\php)。我下载了php- 5.9- win32 - vc11 -x64版本的Apache 2.4

The closest thing I have to this is: phar.phar.bat.

最接近这个的是:phar.phar.bat。

When trying to run this I get the following:

当我试着运行这个程序时,我得到以下信息:

C:\php>"C:\php\php.exe" "C:\php\pharcommand.phar"
No command given, check C:\php\pharcommand.phar help

or

C:\php>php phar.phar.bat
"%~dp0php.exe" "%~dp0pharcommand.phar" %*

2 个解决方案

#1


-1

Did you save go-pear.phar to C:\php\ ? If php is working fine then you should be able to just cd to the directory where you saved the go-pear.phar file and do

你保存go-pear。phar到C:\ php \ ?如果php运行良好,那么应该能够将cd保存到保存go-pear的目录。phar文件并做

 $ php go-pear.phar

更多相关文章

  1. 将csv文件保存到现有文件,但在新工作表和重命名工作表中
  2. php.ini与php-fpm.conf配置文件的区别
  3. 无法在Yii中更改项目的文件夹名称
  4. HPH+Mysql注入点利用 读取文件内容和导出一句话木马
  5. 如何让Netbeans调试器暂停每个新的php文件执行?
  6. 如何使用PHP读取.xls文件(Excel) ?
  7. 解决Apache2+PHP上传文件大小限制的问题技术集锦
  8. 上传文件时通过AJAX更新列表
  9. 使用PHP发布整个mySQL命令

随机推荐

  1. golang如何读取文件
  2. golang和go语言有区别吗?
  3. golang如何封装路由
  4. golang和python的区别
  5. golang和c的区别是什么?
  6. golang如何防止意外崩溃
  7. golang可以写安卓吗
  8. golang反射有啥用?
  9. golang如何定义一个二维数组
  10. Golang如何接收前端的参数