NYCPHP Meetup

NYPHP.org

[nycphp-talk] xampp and php5

John Lacey jlacey at att.net
Sat Jul 17 22:37:40 EDT 2004


Joe Crawford wrote:

>i have installed XAMPP however it is running php 5, that is not a
>problem per-se however i would like to know how to switch?
>i have tried a 'locate php-switch.php file and i get no results ;(
>
>  
>
I assume from the "locate" command that you're on a Linux box :)   the 
following are the directions for Linux:
from the website page: http://www.apachefriends.org/en/xampp-linux.html

*Note to XAMPP 1.4.7*
Because such very new versions like PHP 5 always should be handled with 
care we decided to include both current versions of PHP into XAMPP: PHP 
5.0.0 and PHP 4.3.8. If you find out your PHP application doesn't work 
with PHP 5 you will be able to switch back easily to PHP 4.

By the following command you can switch "back" to PHP 4.3.8:

/opt/lampp/lampp php4

And with the following command you can switch back to PHP 5.0.0:

/opt/lampp/lampp php5

If you forgot which version of PHP is in use simply use phpinfo() or 
call this command:

/opt/lampp/lampp phpstatus


...
John




More information about the talk mailing list