【问题标题】:Is asp functions available in apache asp module?apache asp模块中是否提供asp函数?
【发布时间】:2014-04-28 03:46:46
【问题描述】:

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

【问题讨论】:

  • 错误出现在哪一行?你试过 Response.Write(ftest(7)) 吗?
  • 用 .而不是 -> 并且是相同的交易。试过没有 $ 第一相同。相应地编辑了问题。
  • Apache ASP 模块只支持 Perlscript。如果你想使用 VBScript——大多数人在 Classic ASP 中使用它,那么你真的需要 Windows 和 IIS
  • 哦,好吧...这是扫描阅读页面以加快速度的结果。对不起。
  • @John 是正确的,最好发布为答案,因为这对遇到相同问题的其他人很有用。

标签: linux apache asp-classic apache2 apache2-module


【解决方案1】:

正如@John 所说:

“Apache ASP 模块只支持 Perlscript。如果你想使用 VBScript——大多数人使用 Classic ASP,那么你真的需要 Windows 和 IIS”

所以我想我运气不好。无论如何,谢谢,@John

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-04-21
    • 1970-01-01
    • 2011-03-01
    • 1970-01-01
    • 2018-06-30
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多