Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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

like image 968
sleeper Avatar asked Dec 27 '12 19:12

sleeper


People also ask

Where do I put php files in wamp?

When you installed WAMP server you will get wamp folder in your C drive. In this folder there is another folder name www. To run php code we have to put all php files in this folder.

Do I need to install php after wamp?

Yes, php comes with wamp and when you install wamp server on your pc, php also get installed. you can start php and other services automatically or manually, its upto you.


1 Answers

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

like image 143
sleeper Avatar answered Oct 11 '22 02:10

sleeper