I have WAMP (Apache/MySQL/PHP) installed on Windows 7. PHP 5.3 is included.
I tried "test.php -> right-click -> open with -> browse -> PHP.exe" but PHP.exe does not get added to the "Open With" list. However, it does work if I use "path\to\php\PHP.exe -f "path\file.php".
What should I do?
Best Answer
Put PHP in your path, for one.
Add this to the path, making sure to add semicolons as separators:
C:\path\to\php
You should also edit your apache httpd.conf file, to add support for .php files:
More info can be found here: http://php.net/manual/en/install.windows.apache2.php