<?php
$content = date("Ymd H:i:s").PHP_EOL;
swoole_async_writefile(__DIR__."/1.log", $content, function($filename){
// todo
echo "success".PHP_EOL;
}, FILE_APPEND);
// file_put_contents();
echo "start".PHP_EOL;
【thinkphp5+swoole赛事直播教程系列12】异步写文件
猜你喜欢
转载自blog.csdn.net/qq2942713658/article/details/82776858
今日推荐
周排行