apache asp模块支持功能吗?为什么这不起作用?
<html>
<body>
<%
Function ftest(num)
ftest = num * num
End Function
Response.Write(ftest(7))
%>
</body>
</html>
我收到内部服务器错误。我已经能够运行不使用函数的asp代码。
服务器错误:
[Fri Mar 21 17:45:48 2014] [error] [asp] [1789] [debug] Bareword found where operator expected at /home/**************/teste.asp line 5, near ") <--> \tftest" <-->
[Fri Mar 21 17:45:48 2014] [error] [asp] [1789] [debug] \t(Missing operator before ftest?) <-->
[Fri Mar 21 17:45:48 2014] [error] [asp] [1789] [error] error compiling teste.asp: syntax error at /home/**************/este.asp line 5, near ") <--> \tftest " <--> , /usr/local/share/perl/5.10.1/Apache/ASP.pm line 1466
[Fri Mar 21 17:45:48 2014] [debug] mod_deflate.c(615): [client 127.0.0.1] Zlib: Compressed 613 to 377 : URL /**********/teste.asp
答案 0 :(得分:0)
正如@John所说:
“Apache ASP模块只支持Perlscript。如果你想使用VBScript - 大多数人都使用经典ASP,那么你真的需要Windows和IIS”
所以我想我运气不好。无论如何,谢谢@John