xampp choose php version code example

Example 1: how to get php version in xampp

Open command prompt
Locate directory using cd C:/Xampp/php
Type command php -v
You will get your php version details

Example 2: install multiple php versions windows xampp

Listen 8056
<VirtualHost *:8056>
    <FilesMatch "\.php$">
        SetHandler application/x-httpd-php56-cgi
    </FilesMatch>
</VirtualHost>

Example 3: install multiple php versions windows xampp

extension_dir = "ext"

Example 4: install multiple php versions windows xampp

<Directory "C:\xampp\htdocs\my_old_project1">
    <FilesMatch "\.php$">
        SetHandler application/x-httpd-php56-cgi
    </FilesMatch>
</Directory>

<Directory "C:\xampp\htdocs\my_old_project2">
    <FilesMatch "\.php$">
        SetHandler application/x-httpd-php56-cgi
    </FilesMatch>
</Directory>

Tags:

Php Example