0

How to get compatible with php4 in a framework developed with php5?

Thanks

1
  • 2
    Considering PHP 4 is not supported anymore (not even for security-related problems !), I would drop support for that old version, require PHP >= 5.2, and benefit from the "new" features and functionnalities, that will really make your life easier... Commented Dec 11, 2009 at 7:53

2 Answers 2

1

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.

Sign up to request clarification or add additional context in comments.

Comments

1

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.

2 Comments

consider codeigniter, it is also oop but supports php4 too. any way i agree to dis-consider php4 now i suppose.
yeah, you basically have two options, use another framework that supports both or run it on php5 if you're stuck with the framework. if it's a really small framework developed by yourself, then maybe you could do it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.