Change php version

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Change php version

Postby Hunter » 12. January 2006 12:47

Hello. I think my server is running php5 with the standard installation right? How do I change to php v.4?
Hunter
 
Posts: 32
Joined: 03. September 2005 16:29

Postby kidkitkit » 12. January 2006 20:26

According to the xampp, PHP Switch page.
Have a look at it
===============================================

PHP Switch 1.0 win32 for XAMPP

Current in THIS XAMPP is PHP 5.0.5


What make the PHP switch?
The apachefriends PHP Switch for XAMPP switching between the PHP version 4 to version 5 AND (!) back. So you can test your scripts with PHP 4 or PHP 5.


Where is the PHP Switch?
PHP Switch for XAMPP will execute a PHP file (XAMPP install folder) with the name "php-switch.php". You should use this batch file for executing:

=> C:\Program Files\xampp\php-switch.bat <=




What can be difficult?
PHP Switch will not change your PHP version, when a) the Apache HTTPD is running or/and b) the ".phpversion" file in the install folder is vacant or have a bug. In the ".phpversion", there was written the XAMPP current main PHP version number like "4" or "5". Please beginn with a "shutdown" for the Apache HTTPD and THEN execute the "php-switch.bat".


After That! Where are my (old) config files?

For PHP 4:
C:\Program Files\xampp\php\php4\php4.ini
C:\Program Files\xampp\php\php4\httpd4.conf

For PHP 5:
C:\Program Files\xampp\php\php5.ini
C:\Program Files\xampp\php\httpd5.conf


What is with changes in my config files?

There lives! For PHP4 or PHP5 in the
C:\Program Files\xampp\apache\bin\php.ini
C:\Program Files\xampp\apache\bin\httpd.conf

.. secured for PHP4 ...
C:\Program Files\xampp\php\php4\php4.ini
C:\Program Files\xampp\php\php4\httpd4.conf

.. secured for PHP5 ...
C:\Program Files\xampp\php\php5.ini
C:\Program Files\xampp\php\httpd5.conf

And these files are going back with the PHP switching!!


My PHP is okay AND i will NOT a "switch" !!!
Super! Then forget this here ... ;-)




© ApacheFriends 2002-2004
kidkitkit
 
Posts: 6
Joined: 11. January 2006 18:22


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 54 guests