在ASP里,那个global.asa是干什么用的啊?[篷篷 (4-26 17:39, Long long ago)] [ 传统版 | sForum ][登录后回复]1楼
AnswerOne of the features of an application is that you can store information that is available to all clients that are accessing the application. This information is stored in what is know as an application-scope variable.
To initialize variables in the Application object, you store the information about them in a special ASP file named global.asa. Each application has only one global.asa, placed in the application root.
possible example of global.asa:
<script language="VBScript" runat="Server">
Sub Application_OnStart
Application("myAppVariable") = " "
Application("anotherAppVariable") = 0
End Sub
</script>
[大一的人 (4-26 17:52, Long long ago)]
[ 传统版 |
sForum ][登录后回复]2楼
(引用 大一的人:AnswerOne of the features of an application is that you can store information that is available to all clients that are accessin...)its function is somehow similar tothe *.ini file in a windows application
(or *.h file in a C source)[大一的人 (4-26 17:55, Long long ago)]
[ 传统版 |
sForum ][登录后回复]3楼