note 128965 added to function.error-log

From: Date: Tue, 17 Oct 2023 19:48:00 +0000
Subject: note 128965 added to function.error-log
Groups: php.notes 
Request: Send a blank email to php-notes+get-220923@lists.php.net to get a copy of this message
// Pretty function to log info <?php function logger($log, $clear = true){ file_put_contents('/path/log/logger.log', (is_object($log) || is_array($log) || is_resource($log) ? json_encode($log, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE) : $log), (!$clear) ? FILE_APPEND : 0); } ---- Server IP: 45.112.84.4 Probable Submitter: 45.91.157.134 (proxied: 187.32.212.214) ---- Manual Page -- https://php.net/manual/en/function.error-log.php Edit -- https://main.php.net/note/edit/128965 Del: integrated -- https://main.php.net/note/delete/128965/integrated Del: useless -- https://main.php.net/note/delete/128965/useless Del: bad code -- https://main.php.net/note/delete/128965/bad+code Del: spam -- https://main.php.net/note/delete/128965/spam Del: non-english -- https://main.php.net/note/delete/128965/non-english Del: in docs -- https://main.php.net/note/delete/128965/in+docs Del: other reasons-- https://main.php.net/note/delete/128965 Reject -- https://main.php.net/note/reject/128965 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#220923) next »