许可问题-一天仅调用3次函数 [英] license issue - call a function 3 times a day only

查看:101
本文介绍了许可问题-一天仅调用3次函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,IAM制作了一个应用程序,该应用程序通过以下方式对RichTextBox中的文本执行一些字符串操作:

用户在富文本框中写一些文本,然后单击一个按钮.然后将文本发送到PHP页面进行操作,然后将结果存储在另一个richtextbox中. php部分无法删除,这一点很重要.

我想要的是每天允许使用次数x的许可证.因此,可以说该人被允许使用该功能3次.这必须在应用程序本身上完成.我还希望能够检测到任何日期/时间更改,以防止过度使用.我想声明一个变量并将其存储在HDD上.但这又引发了其他问题.

Iam询问有关如何进行的一般想法?

再次:每天该人可以使用单击按钮3次.此计数应每24小时重置一次. nteditor 软件将无法运行24小时.因此,下次启动它时,应该更新计数.

hello, iam making an application which performs some string operations on a text in a richtextbox in the following way:

the user writes some text in a richtextbox and then clicks a button. The text is then send to a PHP page for operation and the result is then stored in another richtextbox. The php part cannot be removed and is important.

What i want is the license to allow x number of uses per day. So let''s say that the person is allowed to use the function 3 times. This has to be done on the application itself. I also want to be able to detect any date/time change to prevent overuse. I thought to declare a variable and store it on HDD. But then it raises other problems.

Iam asking for a general idea as to how should i proceed?

AGAIN : Every day the person can use the click button for 3 times. This count should be reset every 24 hrs. The nteditor software won''t run 24 hrs. So next time it launches it should update the count.

推荐答案

由于该功能已经需要服务器(PHP或其他任何东西),因此服务器应保留该计数.
它将消除许多将计数保持在本地的问题.

也就是说,我不确定您为什么要施加这样的限制.
似乎太严格了.
因此,我的第二个建议是尽可能避免使用它.

不过,这取决于您.
祝你好运.
Since the function already requires a server (PHP or anything), the server should keep the count.
It would eliminate many problems of keeping the count locally.

That said, I''m not sure why you want to impose such limitation.
It seems too restrictive.
So my second suggestion is avoid it if possible.

It''s up to you, though.
Good luck.


似乎对于Web应用程序来说,这是您需要的.为什么您不考虑为注册用户创建数据库表并保持计数呢?表并在用户登录时获取计数,您可以使用表中的datetime/timestamp类型列来跟踪用户的登录时间;使用托管存储过程来对此进行更新.可能会有所帮助........
最好的祝福;
It seems you need this for a web application why don''t you think of making a database table for registered users and maintain the count in the table and fetch the count when user logs in, You may use datetime/timestamp type column in the table to track login time of users; use a managed stored procedure to update this. May be this helps........
Best wishes;


这篇关于许可问题-一天仅调用3次函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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