Using the Web Test Environment - PHP switching
(Page 3 of 4 )
XAMPP installs both PHP 4 and PHP 5 by default and allows you to switch between the two. This is nice because you can use the exact same PHP version installed on your site.
It’s also nice if you’re currently upgrading your code base from PHP 4 to PHP 5. You can change the code gradually and test under both environments.

To switch PHP versions, you must first stop the Apache service. You can do that easily by using the Stop button in the XAMPP Control Panel. Next open My Computer and navigate to your XAMPP installation directory.

Run the php-switch.bat file. This will ask you to confirm switching versions. Once you press the number corresponding to the new version, the appropriate files will be moved.
Now go back to the XAMPP Control Panel and restart your Apache service. Switching back is just as easy.
Next: Allowing external access >>
More BrainDump Articles
More By Nilpo/Developer Shed Staff Writer