PHP 1句话写本地LOG PHP

file_put_contents("log/log_" . date("Y-m-d") . ".txt", $log, FILE_APPEND);

原文地址:https://www.cnblogs.com/zjfree/p/3068333.html