限制对报告的访问

发布于 12-19 20:14 字数 381 浏览 3 评论 0原文

  • 我正在使用 PHPSQL SERVER 2000 制作一份报告
  • 在此报告中,PHP 页面正在访问包含大量数据的实时数据库
    发生的过程。
  • 我面临的问题是,当我向用户提供此报告时,他们
    频繁访问该报告可能会对日常工作造成严重破坏
    流程。
  • 我想将给定日期的访问时间限制为某个数字(让我们
    例如每天 10 次)或每人两小时之间(一旦访问,一个人只能在 2 小时后查看报告)
    小时)。
  • 这可以通过 PHP 实现吗?或者我需要在 SQL SERVER 2000 中执行此操作
    配置?
  • 如果有的话,请向我提供详细的答案和参考文献
    可能的
  • I'm doing a report using PHP and SQL SERVER 2000
  • In this report, PHP page is accessing a live database with lot of
    processes happening.
  • The problem i'm facing is, when i give this report to users they
    frequently access the report and it can cause havoc to the daily
    processes.
  • I want to limit the access time for a given day to some number(let's
    say 10 times per day) or between two hours periods per person(once accessed a person only can view the report after 2
    hours).
  • Is this achievable via PHP? or do i need to do it in SQL SERVER 2000
    configurations?
  • Please provide me with a detailed answer with the references if
    possible

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

自此以后,行同陌路2024-12-26 20:14:56

您只需简单地启用/创建缓存,以便每天生成几次报告(无论是 cronjob/时间生成)还是通过用户激活,然后允许该报告“实时”几个小时(或无论您的参数是什么) 。

基本上你需要创建一些 PHP 缓存。我会创建报告的副本,然后将其发送给用户,并在全天更新它,而无需他们的交互。

更新
我发现的一个简单示例:http://www.devshed。 com/c/a/PHP/Output-Caching-with-PHP/

You quite simply enable/create caching, so the report is generated a few times a day (either a cronjob / time generation) or by user activation, then allow that report to 'live' for a few hours (or whatever your parameters are).

Basically you need to create some caching PHP side. I would create a copy of the report then send that to users, and update it throughout the day without their interaction.

UPDATE
A quick example I found: http://www.devshed.com/c/a/PHP/Output-Caching-with-PHP/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文