dongshi1934 2013-08-29 00:38
浏览 35

localhost上的AddHandler(xampp)

I just install the newest version of Xampp. It was running PHP Version 5.4.7.

The problem I'm encounter is some of my client's website is build with 5.1 or 5.2 and some function are deprecated. So, I'm trying to change the php version on those particular folder with .htaccess file.

This is what I put in the .htaccess:

AddHandler application/x-httpd-php52 .php .php5 .php4 .php3

However, when I look at the phpinfo(), it still shows that my version is 5.4.7. I tried to restart Apache and Xampp, it's still the same.

Is there any httpd.conf or php.ini setting/module that I need to turn on to allow "AddHandler"? Or something I need to install?

P.s: My Xampp is a fresh install and didn't change any default setting yet.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
    • ¥15 cmd cl 0x000007b
    • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line
    • ¥500 火焰左右视图、视差(基于双目相机)
    • ¥100 set_link_state
    • ¥15 虚幻5 UE美术毛发渲染
    • ¥15 CVRP 图论 物流运输优化
    • ¥15 Tableau online 嵌入ppt失败
    • ¥100 支付宝网页转账系统不识别账号
    • ¥15 基于单片机的靶位控制系统