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

sleeper picture sleeper · Dec 27, 2012 · Viewed 30.6k times · Source

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

  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 Composer to 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 not the case for default wampserver setup I suppose (since it's NOT already in my 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:

  1. php.exe
  2. php-win.exe

I was planning on using number 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

Thanks!

sleeper

Answer

sleeper picture sleeper · Dec 27, 2012

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