Can I use both PHP4 and PHP5 on the same dedicated server?
My server is with ManageMyBox and I already have several domains using PHP4 (with more to come) I would like to set up several new domains with a particular script that requires PHP5 My skill level with scripting/programming is just about zero but I am able to follow step-by-step instructions. Thanks for your help
Public Comments
- You will create a conflict between the 2 databases. You need to upgrade the whole system to php5.
- If you're not running the server, you don't normally have a choice. The server administrator determines whether you're running PHP 4 or PHP 5. If you're running your own server (say you've got your own version of apache, you can have PHP4 and PHP5 available on the same machine, but only one would be running at a time. (I did this for a while on one of my machines. XAMPP even has a switching utility) There were really very few outward changes between versions 4 and 5, so most of the syntax should be the same. Any code you wrote for version 4 will work great on version 5 (although the configuration may be different, and may require some tweaking) Code you wrote for version 5 won't necessarily work on 4 though (especially object-oriented stuff. that changed dramatically) My advice is to begin migrating to 5, because 6 is on the way!
- php4 and php5 are almost equal i prefer to use php5
Powered by Yahoo! Answers