Jump to content

Xampp Php4


OldTimer

Recommended Posts

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

Link to comment
Share on other sites

I have xampplite. Maybe that option isn't in the lite version?

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. ;)

Link to comment
Share on other sites

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 :)

Link to comment
Share on other sites

PHP 5 supports all of PHP 4's functions
Correct.
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.

Link to comment
Share on other sites

  • 4 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...