繁体中文
设为首页
加入收藏
当前位置:ASP技术首页 >> ASP基础 >> 再贴一遍,利用global.asp定时执行ASP

再贴一遍,利用global.asp定时执行ASP

2006-04-15 08:00:00  作者:  来源:互联网  浏览次数:0  文字大小:【】【】【
简介:Please Note: There are many ways to make this better and many different possible variations of what to check for before executing the desired code. This article should get you started and give you...
关键字:定时 global ASP asp

Please Note: There are many ways to make this better and many different possible variations of what to check for before executing the desired code. This article should get you started and give you some ideas.

Also remember that if the web is not set up to run as an application the "global.asa" will not run. You'll need to make sure the web is an application. Most Virtual Domains are by default, but sub webs usually are not.

For the sub webs to run the 'global.asa" they need to be an application as the root usually is. In NT this is accomplished via the Internet Service Manager under the properties of the sub web you want to make an application.

Here is what it looks like in IIS4.

One Last Thing: Before you put any code in your Global.asa to execute during events test it first in a regular ".ASP" page. If it doesn't run there it sure isn't going to run in your global.asa. Also make sure you file paths are correct for the text file. Everything has to be perfect for this sort of thing to work.

Good Luck

责任编辑:admin
相关文章