XAMPP: Tips for Running an Apache/MySQL Server in Windows XP - Testing scripts in PHP 4 and PHP 5
(Page 4 of 4 )
The good thing about XAMPP is that it is able to test the scripts you have written for compatibility in PHP 4 and 5. Here is the simple procedure:
1. Stop the Apache service by going into Control panel -> Administrative Tools -> Services -> Apache 2.2.
2. Go to All programs -> Apache Friends -> XAMPP -> PHP Switch.
2. An MS-DOS screen will then appear.
3. It will then show the current PHP version. If it is currently using PHP 4, you can switch to PHP 5 by typing 5, and then pressing enter. If the switch is successful it will give you the message "PHP Switching was successful." Then press any key to continue.
4. Finally, restart the service by going back into Control panel -> Administrative Tools -> Services -> Apache 2.2
5. To confirm the changes you can go to http://localhost/xampp/ and then click the phpinfo() link. It will then give you the PHP version that you have just switched on.
This completes our look at the basic tips for running an Apache MYSQL server in your Windows XP. In upcoming articles, I hope to cover some advanced techniques for using XAMPP, such as installing a CMS (content management system) in your local host, and configuring Apache directives such as httpd.conf and .htaccess and many others.
| DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware. |