Re: why so slow?

From: Date: Wed, 01 Nov 2006 12:47:01 +0000
Subject: Re: why so slow?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-244011@lists.php.net to get a copy of this message
On 01/11/06, Mel <melinem@earthlink.net> wrote:
Here is the code for a testing page: http://www.squareinch.net/ client_testing.php?art=btw_logo.jpg I am sure it is a mess since it is my first!!!
[....]
include("http://www.squareinch.net/include/misc.inc");
Don't do that - publishing your passwords on the internet is rarely a good security policy. Move your include directory out of the document root, then include the file directly. It'll speed things up too. Combine query1 and query2 into a single query by using a join rather than repeating query2 for every single row of query1 - it should save you 20-odd database queries per page request. As others have said - make your html validate. -robin

« previous php.general (#244011) next »