<?php
$time=60;
$url="http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
/*
此处写业务逻辑
*/
sleep($time);//睡眠
set_time_limit(0);//不限制程序运行时间
file_get_contents($url);//调用自身
<?php
$time=60;
$url="http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
/*
此处写业务逻辑
*/
sleep($time);//睡眠
set_time_limit(0);//不限制程序运行时间
file_get_contents($url);//调用自身