首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > PHP > 限制只运行一个脚本的PHP类的一些实例

限制只运行一个脚本的PHP类的一些实例

  • 资源大小:5.93 kB
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: 运行 一个 脚本 php 一些 实例

资 源 简 介

Important There is also GIT hosted version of this library, see ScriptAlone on GitHub. Example task You have a live queue of emails(for example in DB) that must be sent as soon as possible. You need to have some PHP-script that will check if there are any emails in queue, and if yes so send them. This PHP-script must be runned all time, and check queue every second. Only one instance of this PHP-script can be runned, to be sure that one email was not sent twice. PHP-script can be interrupted in any moment by some error, so in this case it must be restarted as soon as possible. PHP-script can have a bug on some iteration, mean: it will be lunched but not sending emails, so in this case it must be restarted as soon as possible. PHP-script should be restarted every 5-10 hours to prevent memory leaks and do it in safe way (when all current tas

文 件 列 表

example.php
license.txt
readme.txt
ScriptAlone.php
VIP VIP
  • IATWAY 1天前 成为了本站会员

  • 大智若愚 1天前 成为了本站会员

  • Mason 1天前 成为了本站会员

  • 1天前 成为了本站会员

  • Half_Punch 2天前 成为了本站会员

  • liqing71718 2天前 成为了本站会员

  • 伟国 2天前 成为了本站会员

  • songy 2天前 成为了本站会员

  • 纯色幽默 2天前 成为了本站会员

  • odd? 2天前 成为了本站会员

0.183427s