set up virtual host, each host use a different php version.

for example:

Listen 8001
<VirualHost:8001>
    LoadModule php5_module "c:/php5/php5apache2_2.dll"
    PHPIniDir "c:/php5"
    AddType application/x-httpd-php .php
    php_value extension_dir "c:/php5/ext/"
</VirualHost>

an other way is to use <ifdefine> instruction of apache

<ifdefine PHP5>
LoadModule php5_module "c:/php5/php5apache2_2.dll"
</ifdefine>

to pass PHP5 to apache, i think you need to start apache with some
arguments, probably -D PHP5,
can not remember.



On Nov 10, 11:12 am, matt_thomson <[EMAIL PROTECTED]> wrote:
> Hi, has anyone had situations where they needed a script to run on any
> version of PHP, from 4.2 up (inc PHP5). I released a commercial Joomla
> component last week that I tested on a couple of PHP 5.2 servers, as
> you can guess there were mixed results when it was run on servers that
> were not updated for up to 3 years.
>
> I was thinking I could run an old xammp on another partition, or even
> buy a couple of cheap plans on servers with php4.
>
> Also, are there any versions that would be best to choose, I won't be
> able to do all of 4.2, 4.3 ,5.0, 5.1 etc etc.
>
> Thanks,
>
> Matt.
--~--~---------~--~----~------------~-------~--~----~
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[EMAIL PROTECTED]
-~----------~----~----~----~------~----~------~--~---

Reply via email to