|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
ASP一般认为只能运行在IIS上,正如前面所提到的,这并不是十分正确,事实上,ASP也能运行在Apache上。ApacheASP可在任意Apache服务器上运行有限的ASP功能,所需做的,只需打开mod_perl。在一个ASP页面停止的几工夫的程序ASPSourceCode:
----------------------------------------------------------------------
<%IfRequest.QueryString("time")=""Then%>
Youhaventclickedonthelinkbelowyet.<BR>
<%Else%>
Youspent<%=DateDiff("s",Request.QueryString("time"),Now())%>
secondslookingatthepreviouspage.<BR>
<%EndIf%>
<BR>
<AHREF="time.asp?time=<%=Server.URLEncode(Now())%>">HowlonghaveI
spentonthispage?</A><BR>
<BR>
ThisscriptpassesthetimeinaQueryStringparameter.Youcould
justas
easilystoreitinasessionvariable,logittoadatabase,orwrite
itto
atextfile.Italldependsuponwhatyouintendtousethe
information
for.
----------------------------------------------------------------------
ASPSourceCode:
----------------------------------------------------------------------
<%IfRequest.QueryString("time")=""Then%>
Youhaventclickedonthelinkbelowyet.<BR>
<%Else%>
Youspent<%=DateDiff("s",Request.QueryString("time"),Now())%>
secondslookingatthepreviouspage.<BR>
<%EndIf%>
<BR>
<AHREF="time.asp?time=<%=Server.URLEncode(Now())%>">HowlonghaveI
spentonthispage?</A><BR>
<BR>
ThisscriptpassesthetimeinaQueryStringparameter.Youcould
justas
easilystoreitinasessionvariable,logittoadatabase,orwrite
itto
atextfile.Italldependsuponwhatyouintendtousethe
information
for.
----------------------------------------------------------------------
ASP是依赖组件的,能访问数据库的组件好多就有好多种,再有就是你微软的工具可是什么都要收钱的啊! |
|