Forum Moderators: coopster

Message Too Old, No Replies

How Do You Solve PHP4 & PHP 5 Problem?

Some software need PHP5 & others PHP4 - Big Headache

         

Mistra

6:23 pm on Dec 2, 2006 (gmt 0)

10+ Year Member



Hi,

I am having a big headache in managing websites for my clients. Some open source software that they use such as phpbb forum require PHP 4 while latest version of MediaWiki requires PHP 5 to be installed on the server. How do you solve this problem?

Thanks for your answer.

jatar_k

6:30 pm on Dec 2, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I would try and go with php 5 as much as possible, though really as long as you stick with one or the other that should be fine.

Look at software options and what is most commonly needed and used, then decide which is the best for you to choose. There are a bunch of great functions and the differences for OOP that make 5 the better choice if possible.

Another thing is to look at what needs 4 to run and figure out why, all the functions in 4 are available in 5 but not the other way around. A bunch of the software that specifies 4 may just not have been tested on 5 or might be relying on something archaic that could easily be changed.

eelixduppy

6:32 pm on Dec 2, 2006 (gmt 0)




PHP 5 and the integrated Zend Engine 2 have greatly improved PHP's performance and capabilities, but great care has been taken to break as little existing code as possible. So migrating your code from PHP 4 to 5 should be very easy. Most existing PHP 4 code should be ready to run without changes, but you should still know about the few differences [us2.php.net] and take care to test your code before switching versions in production environments.

[us2.php.net...]

I would use PHP 5 if I were you :)

henry0

12:00 pm on Dec 3, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



phpbb may run php5
check Source Forge [phpbb-php5mod.sourceforge.net]