I needed to install an old version of PHP on my development machine, without disrupting my current version.
To do this, I moved all the PHP drivers and ini files out of my Windows and SYSTEM32 directories and placed them in my c:/php/ directory. I then created a new directory 'c:/php4/' and placed all the files for that version in the directory. For simplicities sake I created a new entry in my apache config file:
ScriptAlias /php4/ "C:/php4/"
AddType application/x-httpd-php4 .php4
Action application/x-httpd-php4 "/php4/php.exe"
Now if I want to run the script through PHP4 I use the extension .php4, and if I want to run it through php5 I use .php (I can live with this).
Looking at the phpinfo() page for both versions everything seems to be working, but I am left to wonder if I'm going to cause myself problems that I am unaware of.
Thanks,
Itshim
To do this, I moved all the PHP drivers and ini files out of my Windows and SYSTEM32 directories and placed them in my c:/php/ directory. I then created a new directory 'c:/php4/' and placed all the files for that version in the directory. For simplicities sake I created a new entry in my apache config file:
ScriptAlias /php4/ "C:/php4/"
AddType application/x-httpd-php4 .php4
Action application/x-httpd-php4 "/php4/php.exe"
Now if I want to run the script through PHP4 I use the extension .php4, and if I want to run it through php5 I use .php (I can live with this).
Looking at the phpinfo() page for both versions everything seems to be working, but I am left to wonder if I'm going to cause myself problems that I am unaware of.
Thanks,
Itshim