Hello There,
How to get compatible with php4 in a framework developed with php5?
Thanks
Hello There,
How to get compatible with php4 in a framework developed with php5?
Thanks
That sounds like an unnecessary waste of time.
I'd suggest using PHP5 instead.
As you are asking about a framework i assume that it is object oriented, and as such is not what i consider a candidate for backporting to PHP4.
To make me even consider the process of doing so you would have to convince me that there is in fact a solid reason for doing so. I cannot see there is one at this point.
Backporting for the sake of running a single instance of the framework is nothing but stupid. If this is due to some webhosting company that does not yet offer PHP5, just switch to another better hosting provider.
If it's not too late you could use a framework like CakePHP or CodeIgniter that support both. Otherwise, it sounds like a losing battle that is not worth the effort.
If you are developing something from scratch, I agree with the other answers PHP5 is the only way to go.