使用 .htaccess 或 php.ini 更改服务器上的 PHP 版本 [英] Change PHP version on server using either .htaccess or php.ini

查看:32
本文介绍了使用 .htaccess 或 php.ini 更改服务器上的 PHP 版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用 php.ini 文件的 .htaccess 在服务器上将 PHP 版本更改为 5.2?

How can I change the PHP version to 5.2 on a server using either an .htaccess of php.ini file?

推荐答案

添加

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

到您的 .htaccess 可能会起作用.

to your .htaccess might work.

这篇关于使用 .htaccess 或 php.ini 更改服务器上的 PHP 版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆