php定时执行,每天执行一次

<?php

$time=60;

$url="http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];

/*

此处写业务逻辑

*/

sleep($time);//睡眠

set_time_limit(0);//不限制程序运行时间

file_get_contents($url);//调用自身

猜你喜欢

转载自blog.csdn.net/phptyong/article/details/79088562
今日推荐