处理特定的.htm页作为的.php Apache服务器上 [英] Process specific .htm page as .php on Apache server

查看:181
本文介绍了处理特定的.htm页作为的.php Apache服务器上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是编程Apache服务器,我需要的只是一个特定的HTML页面(比如,first.htm)被处理为PHP脚本。是否有可能成立?

I'm programming for an Apache server and I need for just one specific html page (say, first.htm) to be processed as PHP script. Is it possible to set up?

推荐答案

创建的.htaccess 称为文件,并将其放置在目录中该文件将在添加此行至TI:

Create a file called .htaccess and place it in the directory this file will be in. Add this line to ti:

<Files first.htm>
    AddType application/x-httpd-php .htm
</Files>

这篇关于处理特定的.htm页作为的.php Apache服务器上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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