我知道如果我们编辑 .htaccess 文件,我们可以用 .html 格式编写 PHP。
ddType application/x-httpd-php .htm .html
编辑 .htaccess 并在 .html 文件中编写 PHP 代码与在 .php 文件中编写 PHP 代码有什么区别?
最佳答案
没有区别。用 .html 编写的 PHP 与用 .php 文件编写的 PHP 完全一样。但是,您不能在 .php 文件中编写 HTML。
关于php - .html 与 .php |区别,当我在两种扩展类型中编写 php 时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26540995/