Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105899 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 59784 invoked from network); 13 Jun 2019 15:21:03 -0000 Received: from unknown (HELO mail.kd2.org) (91.121.181.110) by pb1.pair.com with SMTP; 13 Jun 2019 15:21:03 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=bohwaz.net; s=mail; h=Message-ID:References:In-Reply-To:Cc:From:Date:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:To; bh=WKnNksJ7zXJj2zmeamOcv2TQk+Na19jm7+OFl3VJ0NY=; b=pRtug/AdKasoadpwKbQ8LZnMR30h509CPBeZv8kmvs1hkzLr94hOuXaoE50EbYlJeoDHln3DHh1iF+EORJqdK0VF7PYp4gxOrjlzKmXCNDMfqsJqaYG+b3j3gkMne+WSrQbr3QsMhvGI6R4zAmToSfgffnZIYBS6LykwDs8zLm0=; Received: from narragoon by mail.kd2.org with local (Exim 4.84_2) (envelope-from ) id 1hbOvj-0001Y5-N1; Thu, 13 Jun 2019 14:34:11 +0200 To: Lester Caine X-PHP-Originating-Script: 0:rcube.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Thu, 13 Jun 2019 14:34:11 +0200 Cc: internals@lists.php.net In-Reply-To: References: Message-ID: <5bf5dd6b435dad5ea8e15e8d1eb0a416@bohwaz.net> X-Sender: php@bohwaz.net User-Agent: Roundcube Webmail/1.1.5 Subject: Re: [PHP-DEV] The real world ... From: php@bohwaz.net (BohwaZ/PHP) Le 13/06/2019 14:20, Lester Caine a écrit : > On 13/06/2019 13:04, Andrey Andreev wrote: >> You have logs to see the errors; relying on your users to report the >> actual error messages to you is the worst way to do it. > > How many website logs can you manage on a daily basis? Given the > volume of material in heavily used website. I am STILL trying to get > long established sites back to a state where that would be a practical > approach. Especially when adding material is first element on the > to-do list. I've several hours of such work to get cleared first and > prompts in that traffic is easier to manage than then working through > several machines worth of logs ... Have you considered using solutions like Sentry? https://sentry.io/welcome/ It gets added to the error handler and will report errors to a server. Quite handy. Another solution is to use the shutdown and error handler to send an email to you when there is an error: https://stackoverflow.com/questions/277224/how-do-i-catch-a-php-fatal-error We used that solution for quite some time, but it can quickly overload your email server when you have millions of requests producing errors ;)