使用 WampServer (Win7/64) 将哪个 PHP 文件添加到我的路径

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/14060108/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-25 06:32:28  来源:igfitidea点击:

Which PHP file to add to my Path using WampServer (Win7/64)

phpwampwampservercomposer-php

提问by sleeper

I've been reading up on TDD using PHP and i'm ready to install PHPUnit, however...

我一直在阅读使用 PHP 的 TDD 并且我准备安装 PHPUnit,但是......

  1. I'm on Win7/64 running WampServer
  2. I'm reading all these PEAR/PHPUnit install nightmare stories which are making me very leery.
  3. So I'm considering using Composerto install PHPUNit (to skip the whole PEAR thing, for now).
  4. Either way, it seems that it's best to have PHP in the PATH, which is notthe case for default wampserver setup I suppose (since it's NOT already in my PATH)
  1. 我在 Win7/64 上运行 WampServer
  2. 我正在阅读所有这些 PEAR/PHPUnit 安装噩梦故事,这让我非常怀疑。
  3. 所以我正在考虑使用Composer来安装 PHPUNit(暂时跳过整个 PEAR 的事情)。
  4. 无论哪种方式,它似乎是最有PHP的路径,这是不是默认设置wampserver我想(因为它是不是已经在我的PATH)的情况下

I'm a bit confused about exactly which php file I should be adding to the PATH, as my directory (C:\wamp\bin\php\php5.3.10) has the following files:

我对应该将哪个 php 文件添加到 PATH 感到有些困惑,因为我的目录 (C:\wamp\bin\php\php5.3.10) 包含以下文件:

  1. php.exe
  2. php-win.exe
  1. 执行程序
  2. php-win.exe

I was planning on using number 1.

我打算使用1号。

Finally, are there any other caveats that I should be aware of.

最后,还有什么我应该注意的注意事项。

I'm using NetBeans (and SublimeText2 for front end stuff) and WampServer 2.2

我正在使用 NetBeans(和 SublimeText2 用于前端内容)和 WampServer 2.2

Thanks!

谢谢!

sleeper

轨枕

回答by sleeper

I Solved it. I just add the directory (C:\wamp\bin\php\php5.3.10), not an individual file. See my comment.

我解决了。我只是添加目录 (C:\wamp\bin\php\php5.3.10),而不是单个文件。看我的评论。