Re: PHP Denial of service

From: Date: Mon, 16 Oct 2006 19:44:54 +0000
Subject: Re: PHP Denial of service
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-243210@lists.php.net to get a copy of this message
On 10/14/06, Ryan Barclay <ryan@rbftpnetworks.com> wrote:
It hasn't actually been attempted. However, if a couple of a users were to hold the refresh, the page generation times would go up ridiculously and clients would be waiting over 20sec for pages. As mentioned, it's a very heavy php-mysql script with lots of queries.
A few questions: #1: are those queries optimized (using indexes where needed)? #2: is the code optimized.. no stupid loops. #3: in order for php to know a user aborted it has to try to output something (at least with apache on unix) to deal with #3, i used to do a little trick: <?php // some standard things like <html><head>.... ?><?php // do intensive stuff ?> I dont know if that ?><?php trick still works but it used to force php to talk to apache and if apache said: oh you know what.. there isn't a connection so a user aborted request will exist, or if it is set to ignore user aborts, connection_aborted() will report true. Curt.

« previous php.general (#243210) next »