Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Arno Welzel Newsgroups: comp.lang.php Subject: Re: [docker] error_log() not write inside web page Date: Tue, 29 Nov 2022 21:20:13 +0100 Lines: 29 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net zQaYPiwj+bszyYzneBAaagYtIRUwB/8NkI+VNjrag1w0AU4vWQ Cancel-Lock: sha1:lM02+Be/KGO2Gunuyf2T8DGsZgQ= Content-Language: de-DE In-Reply-To: Xref: csiph.com comp.lang.php:19185 SupaPlex, 2022-11-26 21:30: [...] > echo "BEFORE\n"; > error_log("abc"); > echo "AFTER\n"; [...] > supaplex$ curl http://localhost:8013/ > BEFORE > AFTER > > Why *abc* does not appear? Because error_log() does not produce any output: "error_log — Send an error message to the defined error handling routines" And the error handling routines may not send the log message to the output but only to the error log which is *not* send via HTTP to the client. Next time please read the PHP manuals first, before asking here. -- Arno Welzel https://arnowelzel.de