Does anyone have any advice on checking portability of php pages when switching hosts? I know that my current host may have different .ini settings than my new one. I try to make my code as portable as possible. But, I'm sure I missed some things.
Is there a program or something out there that can scan your code looking for possible portability problems? I would just hate to go through so much manually.
Any suggestions would be greatly appreciated.
How do I check portability when switching hosts
Moderator: General Moderators
-
kettle_drum
- DevNet Resident
- Posts: 1150
- Joined: Sun Jul 20, 2003 9:25 pm
- Location: West Yorkshire, England
-
timhortons
- Forum Commoner
- Posts: 29
- Joined: Thu Jan 15, 2004 11:48 am
- Location: Calgary, AB, Canada
Since I run my own server, I've got it configured pretty well close to how I want it, but I'd imagine with other hosting plans that are provided, things get a bit more tough. Although I've got some nice "addon" modules installed in PHP, like some of the PEAR classes, I've tried to stick to most of the basic PHP functions so that in the future I'll have a good idea of what I need setup on the host, or what i need to take out of my code.
In your case, testing would alright if you havent already done so. I personally dont know of any programs to test for compatibility, but if you print out the phpinfo() function on your new host, and print out another phpinfo() on your current host, you can compare results and get an idea of what you've got in your code that may conflict. After that, I wouldnt know what to do
In your case, testing would alright if you havent already done so. I personally dont know of any programs to test for compatibility, but if you print out the phpinfo() function on your new host, and print out another phpinfo() on your current host, you can compare results and get an idea of what you've got in your code that may conflict. After that, I wouldnt know what to do