Mr_J Posted September 26, 2008 Share Posted September 26, 2008 Ok, I’m coding in PHP5. If I run <?php phpinfo(); ?> I can see that the server is "PHP Version 4.4.4-8+etch6" As I’m a newbi, how much is PHP5 compatible with PHP4? Some functions like ceil & floor gives me Phrase or/and syntax etc. errors. Is this because of a compatibility issue? ??? Quote Link to comment https://forums.phpfreaks.com/topic/125918-solved-compatible/ Share on other sites More sharing options...
Guardian-Mage Posted September 26, 2008 Share Posted September 26, 2008 The ceil errors are probably caused by bad coding, because I am not aware of any significant changes to those functions between versions. However, there are a GREAT many differences between the two, especially with OOP. Quote Link to comment https://forums.phpfreaks.com/topic/125918-solved-compatible/#findComment-651174 Share on other sites More sharing options...
PFMaBiSmAd Posted September 26, 2008 Share Posted September 26, 2008 The only parse or syntax errors you will get that are strictly due to php5 syntax executed on a php4 system are OOP related. If you are getting parse errors with just function calls, it is probably due to your code or possibly the use of short open tags <? in your code (which is actually a configuration problem, not a php version problem.) The quickest way to get help with what your code is doing that is php configuration specific or php version specific would be for you to post your code and post the actual error message. Quote Link to comment https://forums.phpfreaks.com/topic/125918-solved-compatible/#findComment-651199 Share on other sites More sharing options...
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.