什么时候我要使用.html和.php作为文件扩展名? [英] When would I want to use .html, vs. .php, as a file extension?

查看:63
本文介绍了什么时候我要使用.html和.php作为文件扩展名?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到.html.php文件扩展名可以互换而没有明显的作用.为什么我要使用一个文件扩展名而不是另一个文件扩展名?

I've noticed that the .html and .php file extensions can be interchanged without apparent effect. Why would I want to use one file extension over the other?

推荐答案

使用.html作为默认值. 如果您的网页正在运行phpscripts,请使用.php 因此,如果要与服务器通信,请使用.php

Use .html as a default. If your page is running phpscripts then use .php So, if you are communicating with server, use .php

这篇关于什么时候我要使用.html和.php作为文件扩展名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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