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

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

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

  • 资源大小:5.93 kB
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分: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
  • 猕猴桃 1小时前 成为了本站会员

  • 11 4小时前 成为了本站会员

  • 开心快活人 7小时前 成为了本站会员

  • 晋财 8小时前 成为了本站会员

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

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

  • 柳贻 1天前 成为了本站会员

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

  • 焦昱贺 1天前 成为了本站会员

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

0.839616s