php日志打印 用于不方便打断点的情况

 
$documentRoot = $_SERVER['DOCUMENT_ROOT'];
file_put_contents($documentRoot.'/log.txt',print_r('xxxxxxxxxxx',true),FILE_APPEND);
posted @ 2022-09-13 11:51  谢凌  阅读(10)  评论(0编辑  收藏  举报