我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

如何让PHP脚本每天只运行一次?

How can I allow a PHP script to run once per day even if it is launched multiple times?

on a linux server use cron , you will be able to choose what frequency it will be run : https://help.ubuntu.com/community/CronHowto

on a windows server :

What is the Windows version of cron?

after your edit : see @script47's comment

By the way, cron is very simple to use, dont be affraid of it

近期文章

  • 用于更改具有相同值的所有变量的颜色的函数
  • PHP检查mysqli_num_rows无效
  • 多维数组到PHP中的if else语句
  • PHP使用($ _GET ['url'])然后显示json数据?
  • 将php变量分配给div id并使用jquery访问它
  • 我的mysli数据库中出现了错误的日期?
  • 什么是查询app inventor发送的用户输入的php脚本? 以及创建此登录页面的块是什么?
  • 如何从php到html <select>选项获得结果?
  • 在mysql插入语句中,如何将当前生成的id作为外键插入?
  • 检查是否已选择日期。 Bootstrap输入类型日期
  • 任何代码在PHP中获取facebook分享的新scrape信息?
  • PHP设置会话会导致错误
  • 从下拉菜单中选择未插入到已分配的变量[关闭]
  • php str_replace static到动态id
  • 使用翻译的多语种网站
  • 将数组对象插入数据库
  • 删除没有任何值或键的数组
  • 在浏览器上,不执行PHP代码
  • IOS应用程序将无法连接到MySQL数据库
  • 如何在php数据库中循环一部分列

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华