当前位置: 首页 > 网络学院 > 服务端脚本教程 > ASP > ASP Server

ASP
ASP Drive
ASP File
ASP Folder
ASP Dictionary
ASP ADO
ASP AdRotator
ASP BrowserCap
ASP Content Linking
ASP Content Rotator
ASP Quick Ref
ASP 摘要
ASP 实例

ASP Server


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-01   浏览: 733 ::
收藏到网摘: n/a

The ASP Server object is used to access properties and methods on the server.
ASP服务器对象是用来访问服务器端的属性和方法的。


Examples
举例

When was a file last modified?
文件最后是在什么时候被修改的?
Checks when this file was last modified.
检查文件最后被修改的时刻。

Open a text file for reading
打开一个文本文件阅读
This example opens the file "Textfile.txt" for reading.
这个例子将打开一个名为“Textfile.txt”的文本文件阅读。

Homemade hit counter
自制的计数器
This example reads a number from a file, adds 1 to the number, and writes the number back to the file.
这个例子将读取文件中的一个数字,然后给这个数字加1,最后再把这个数字写回文件中。


Server Object
服务器对象

The ASP Server object is used to access properties and methods on the server. Its properties and methods are described below:
ASP服务器对象是用来访问服务器端的属性和方法的。服务器端的属性和方法具体如下:

Properties
 属性

Property
 属性
Description
描述
ScriptTimeout Sets or returns the maximum number of seconds a script can run before it is terminated
为脚本设置一个最大的有效(活动)时间。(单位:秒)

Methods
方法

Method
方法
Description
描述
CreateObject Creates an instance of an object
建立一个对象
Execute Executes an ASP file from inside another ASP file
从另外一个ASP文件中执行一个ASP的文件
GetLastError() Returns an ASPError object that describes the error condition that occurred
返回一条用来描述错误发生的具体情况的ASP错误对象
HTMLEncode Applies HTML encoding to a specified string
将HTML编码转换为指定字符串
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
将其中一个ASP文件当中创建的信息发送到另一个ASP文件中去
URLEncode Applies URL encoding rules to a specified string
将URL转换为指定字符串

评论 (0) All

登陆 | 还没注册?