我想在Windows Server上的Apache上运行两个版本的PHP (5.3和5.6)。
问题是目录树。
我的树是www_root/ ->Dir1->Dir2
www_root和Dir1在同一个vhost上(www.domain.com和www.domain.com/Dir1)
如何在“"www_root/Dir1”www_root“目录下运行PHP5.6,在"www_root/Dir2”上运行PHP5.6和PHP5.3?
发布于 2015-10-09 17:33:53
将htaccess
与AddHandler
结合使用。
在两个文件夹上创建一个.htaccess
文件,并根据要使用的php版本添加以下内容。
AddHandler application/x-httpd-php56 .php
AddHandler application/x-httpd-php53 .php
https://stackoverflow.com/questions/33049306
复制