ASP经典:如何安排功能服务器端 [英] ASP classic: How to schedule a function server-side

查看:152
本文介绍了ASP经典:如何安排功能服务器端的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的工作只是在ASP经典(我知道我已经学到新的东西,但现在......)这是我的问题:

I work just on ASP classic (I know I've to learn something new, but for now...) and that's my problem:

在我的数据库我店网站的账户。一年后需要被停用的帐户。
我已经创建的工作正常功能,但我需要一个sheduled调用(每晚上午12点)。它是不可能性?
我需要把通话的global.asa?

In my database I store website's account. After a year the accounts needs to be deactivated. I've create a function that's works fine, but I need a sheduled call (every night at 00.00 am). Is it possibile? Do I need to put the call on global.asa?

非常感谢!

莫里吉奥

推荐答案

您可以安排通过自由的cron服务,如 HTTPS工作: //www.setcronjob.com 像在下面的图片配置。这是举办没有权限创建任务谁的客户,我用了很多次,没有麻烦了很好的解决。该服务将在请求您指定的时间跨度或确切的时间您指定的网址。

一点点的安全/避免不必要的请求可以为将请求的页面指定自定义哈希值。

You can schedule jobs through free cron services such as https://www.setcronjob.com with configuration like in following picture. This is a good solution for hosting customers who do not have permission to create the task, I used many times with no trouble. The service will request to url you specified at you specified timespan or exact time.
For a little bit security / avoiding unnecessary requests you could specify a custom hash for the will be requested page.

If Request.QueryString("hash") = "somespecialstuffs" Then
    'Do Job
End If

这篇关于ASP经典:如何安排功能服务器端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆