Changing PHP version in XAMPP
This a a very good feature of XAMPP. You can easily switch the version of PHP between 4 and 5 in it. Although PHP 4 is not provided in XAMPP 1.7.0, but in previous versions you can use this feature. To do this in windows go to start> run and type cmd in the box and click ok.
here change drive to\xampp\
Now run command php-switch.bat
It will ask to stop apache first to do that run apache_stop.bat
Now run command php-switch.bat
it will display the version of PHP you are running and a menu showing options to change the version or x for exit.
If you are running version 5, type 4 to change the version to PHP 4 and click enter. It will change your PHP version to php 4.
Do not forget to restart apache by running apache_start.bat
Now you are using PHP 4 on your PC.
Follow the same steps to switch back to PHP5.
If you find any problem please feel free to contact me.
here change drive to
Now run command php-switch.bat
It will ask to stop apache first to do that run apache_stop.bat
Now run command php-switch.bat
it will display the version of PHP you are running and a menu showing options to change the version or x for exit.
If you are running version 5, type 4 to change the version to PHP 4 and click enter. It will change your PHP version to php 4.
Do not forget to restart apache by running apache_start.bat
Now you are using PHP 4 on your PC.
Follow the same steps to switch back to PHP5.
If you find any problem please feel free to contact me.


0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home