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.
如果我使用网页,即。HTML 页面并在其中编写一些 php 代码。另外,如果我在其中编写一些jsp代码并将文件另存为.jsp,可以这样做吗?只是一个常见的问题在我脑海中浮现。所以,想问问大家。对不起,如果我听起来很有趣。我有html和jsp的知识。但是php的新手。提前致谢。
你不能。每个都由单独的运行时处理,并且它们不互操作。
不是以任何明智的方式。PHP 和 JSP 都是服务器端脚本语言,但它们通常用于非常不同的环境,并且不兼容。尝试组合它们是没有意义的 - 选择一个并使用它。