Updating php windows
Right-click My Computer, go to Advanced tab, and click on Environment Variables.Add the two installations and their EXT directories to the Path variable. that my answer helped couple of users, here is the edit from original link: Edit: Hope that I covered everything.Most probably these steps will not work if you change major versions of php, e.g.I've searched a bit around on google and I found out that it uses my windows PHP version instead of my webserver's version.
Here it is (Apache's contents):---------------------------# replace with your PHP4 directory Script Alias /php4/ "c:/usr/php4/"# replace with your PHP5 directory Script Alias /php5/ "c:/usr/php5/"Add Type application/x-httpd-php Action application/x-httpd-php "/php5/php-cgi.exe"# populate this for every directory with PHP4 code---------------------------This solution is not limited to having only two parallel versions of PHP. Install location is on my local E: drive The Tests: Test 1:a. Ran "test-php-ini-loaded.php" to check if my is loaded. Note: Per PHP’s “The configuration file” note, PHP's search order includes: “Windows directory (C:\windows or C:\winnt) (for Windows), ...”; but it apparently doesn’t or would have been found and displayed at “Loaded Configuration File”. This resulted in "No input file specified" errors whenever I tried to load the default page in my site's directories. If anyone has the same problem, this may be the cause. We had installed two separate different PHP versions - PHP 5.1.4 followed by 5.2.5.For example, add:c:\php;c:\php\ext;c:\TMAS\php;c:\tmas\php\ext; Then, add the newer PHP version's directory as a variable called PHPRC.For example: Variable: PHPRCValue: C:\PHPClick OK to close the Environment Variables window, and click OK to close System Properties.2. Add both versions' ISAPI module separately to the extensionslist, and allow both.4.Remember to put your files in directories specified in lines "Set Env PHPRC...", and make sure that there's no files in other directories (such as c:\windows in Windows). sorry - you have to use other solution (the best advice as always is: Google it! No matter what I did phpinfo( ) reported "Configuratin File Path" as: “C:\WINDOWS”. To help resolve the phpinfo() “issue”, I conducted a series of tests using two scripts: The first is “test-php-ini-loaded.php”; it is stored in c:\inetpub\wwwroot, and has the following code: My Dev Environment:1. Ran “test-php-ini-loaded.php” to check whether my is loaded. To fix this problem, we added version 5.2.5's php5to the ISAPI Filter category for the web site, in the IIS control panel.And finally, as you can see, I run PHP in CGI mode. Here's how to run dual PHP instances with PHP 5.2 and any previous PHP on Windows 2003:1.