是否可以在 .asp 文件中的 VBScript 块中 运行 php 编码?

Is it possible to run php code inside VBScript block in a .asp file?

是否可以在 .asp 文件的 VBScript 块中 运行 一些 php 代码?

类似于:

<%@ LANGUAGE="VBSCRIPT" %>
<%
Set str = <?php $s = "hello world"; echo $s; ?>
%>

谢谢

那不行。

但是经典的ASP和VBScript是一个类似于PHP的组合。
参见 classic ASP reference

你问题中的代码看起来像

<%@ LANGUAGE="VBSCRIPT" %>
<%
s = "hello world"
Response.Write(s)
%>