OldTimer Posted April 27, 2005 Posted April 27, 2005 Hi, I didn't know where to post this. But here goes. I'm running xampp on my pc. I understand there is a way to switch between php5 and php4. Does anyone know how? I saw this posted at another forum "Actually, there should be a "PHP Switch" in the XAMPP (or apachefriends) menu. It runs a file called php-switch.bat" But I can't find a "PHP Switch" Thanks, Greg Quote
TweezerMan Posted April 27, 2005 Posted April 27, 2005 Assuming you're PC is running Windows, it looks like you need to run this batch file to switch PHP versions (double-click on the file in Windows Explorer): >C:\apachefriends\xampp\php-switch.bat Quote
OldTimer Posted April 27, 2005 Author Posted April 27, 2005 Thanks David However I sure don't see php-switch.bat I have xampplite. Maybe that option isn't in the lite version? Greg Quote
TweezerMan Posted April 27, 2005 Posted April 27, 2005 I have xampplite. Maybe that option isn't in the lite version? <{POST_SNAPBACK}> The full version of XAMPP ships with both PHP5 and PHP4: Apache HTTPD 2.0.53, MySQL 4.1.11, PHP 5.0.4 + 4.3.11 + PEAR + Switch, MiniPerl 5.8.3, Openssl 0.9.7f, PHPMyAdmin 2.6.1 pl3, XAMPP Control Panel 1.0, eAccelerator 0.9.2a, Webalizer 2.01-10, Mercury Mail Transport System für Win32 und NetWare Systems v4.01a, FileZilla FTP Server 0.9.6a, SQLite 2.8.15, ADODB 4.60, Zend Optimizer 2.5.7, XAMPP Security.XAMPP Lite appears to only ship with PHP5:XAMPP Lite is a very reduced version of XAMPP with Apache 2.0.53 + PHP 5.0.4 (without PEAR) + MySQL 4.1.11 + PHPMyAdmin 2.6.1 pl3 + Openssl 0.9.7f + SQLite 2.8.15 + eAccelerator 0.9.2a. Since XAMPP Lite does not ship with PHP4, switching really isn't an option for you. Quote
OldTimer Posted April 27, 2005 Author Posted April 27, 2005 Thanks again. Might be why I couldn't locate that php-switch.bat That full version will take a bit of time to download on my dialup. But will probalbly be worth it. Rain again in our neck of the woods. I'm just south of you in South San Jose. Thanks Greg Quote
carbonize Posted May 3, 2005 Posted May 3, 2005 Question is why would you want to switch? Last I checked PHP5 supports everything PHP 4 does. Quote
OldTimer Posted May 4, 2005 Author Posted May 4, 2005 Cause there is a cms I've been playing around with that won't work with php5. Greg Quote
carbonize Posted May 4, 2005 Posted May 4, 2005 That makes no sense. PHP 5 supports all of PHP 4's functions so anything written for PHP 4 should work fine with PHP 5. Quote
carbonize Posted May 4, 2005 Posted May 4, 2005 May be worth checking your php ini file. See what settings are there. Possibly the CMS uses the old fashioned $HTTP_GET_VARS style instead of $_GET and the old style is not supported by default in PHP5. Quote
borfast Posted May 6, 2005 Posted May 6, 2005 PHP 5 supports all of PHP 4's functionsCorrect.so anything written for PHP 4 should work fine with PHP 5.Incorrect. Supporting all of PHP 4 functions doesn't mean that scripts written for PHP 4 will work with PHP 5, as you noted yourself below: May be worth checking your php ini file. See what settings are there. Possibly the CMS uses the old fashioned $HTTP_GET_VARS style instead of $_GET and the old style is not supported by default in PHP5.And there are also other kinds of compatibility problems, like object assignment being made by reference by default in PHP 5, instead of copying them as in PHP 4, for example. Which takes us back to what Greg said Cause there is a cms I've been playing around with that won't work with php5. This kind of incompatibility is one of the reasons why TCH currently has no plans to upgrade it's servers to PHP 5, btw. Quote
jshuja Posted January 14, 2010 Posted January 14, 2010 i am running the current version of xampp. i want to switch to php4 to run some sql injections. but i dont have the phpswitch.bat file!!!! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.