Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道 .php 文件扩展名是 PHP 解析所必需的,但是是否可以通过将 PHP 代码放在单独的文件中,然后使用包含在脚本标记中的 .html 文件来解决这个问题?
您可以命名一个 PHP 脚本a.blah,它仍然运行:
a.blah
php a.blah
只要 a.blah 包含有效的 PHP 脚本。