Server 对象用于访问服务器上的属性和方法。
文件最后一次修改是什么时候?
检查文件的最后修改时间。
打开文本文件进行读取
打开"Textfile.txt"进行阅读。
ASP Server 对象用于访问服务器上的属性和方法。其属性和方法描述如下:
Property | Description |
---|---|
ScriptTimeout | Sets or returns the maximum number of seconds a script can run before it is terminated |
Method | Description |
---|---|
CreateObject | Creates an instance of an object |
Execute | Executes an ASP file from inside another ASP file |
GetLastError() | Returns an ASPError object that describes the error condition that occurred |
HTMLEncode | Applies HTML encoding to a specified string |
MapPath | Maps a specified path to a physical path |
Transfer | Sends (transfers) all the information created in one ASP file to a second ASP file |
URLEncode | Applies URL encoding rules to a specified string |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!