后端开发|php教程
ignore_user_abort
后端开发-php教程
多的不说,直接上代码:
php下载网站源码,vscode怎么打开c文件,ubuntu ssd 缓存,TOMCAT下载壁纸动漫,爬虫抓去数据,定界符在php中,免费的seo查询工具排名,如何面向对象设计网站js,帝国cms 模板存放目录lzw
ignore_user_abort(true); //设置客户端断开连接时是否中断脚本的执行
set_time_limit(0);
$file = /tmp/ignore_user.txt;
if(!file_exists($file)) {
file_put_contents($file);
}
if(!$handle = fopen($file,a+b)){
echo "not open file :".$file;
exit;
}
$i=0;
while($i<100) {
$time = date("Y-m-d H:i:s",time());
echo $time."\n";
if(fwrite($handle,$time."\n")===false) {
echo "not write file:".$file;
exit;
}
echo "write file time:".$time."\n";
$i++;
sleep(2);
}
fclose($handle);
招聘网源码,ubuntu彻底卸载包,淘宝京东商品爬虫,php books,seo上词lzw