How simple is it for me to swap between different versions of PHP?
Background: Our virtual server which I administrate on behalf of clients has a few versions of PHP on it and switching between them is a simple matter of changing one line of the httpd.conf file, so I can upgrade or downgrade in seconds just by pointing apache to the libphp4.so in the apropriate directory.
I'd like to do this on my development box too. The only thing that concerns me is that on the VS it's not like all the php lib files are all in the same directory in the form
/foo/bar/libphp4.0.6.so
/foo/bar/libphp4.1.1.so
/foo/bar/libphp4.2.0.so
They're in this sort of format...
/foo/php4.0.6/bar/libphp4.so
/foo/php4.1.1/bar/libphp4.so
/foo/php4.2.0/bar/libphp4.so
Is this because the file must be called libphp4.so or is there something more complex at work. Does libphp4.so need to be in a directory relative to supporting files in the /foo/phpX.X.X/ directory which are unique to each version?
Or can I just keep all the .so files in one directory and just rename them for each version to take effect to libphp4.so?
Swapping lib files
Moderator: General Moderators
-
leenoble_uk
- Forum Contributor
- Posts: 108
- Joined: Fri May 03, 2002 10:33 am
- Location: Cheshire
- Contact: