[thelist] php/mysql speed query
kris burford [midtempo]
kris at midtempo.net
Tue Mar 5 04:26:01 CST 2002
--
hi,
i've been building a dynamic site with php/mysql and have some questions
about how to construct things to get the quickest page response times.
from a previous thread i've gathered that writing the page in pure php will
be quicker than intermingling php with html.
but is it better to have a large page of php code littered with
conditional/switch statements (where the output is dependent on which
section of the site a visitor is in or which options they have made within
a page) or to split the code into multiple smaller documents. for example,
i've an include for the navigation which is currently 16k of php code. i
could easily reduce this so that each section of the site calls a separate,
smaller, file (at the expense of having one single file to manage).
i'm also intending to look at making it cache-friendly, so if anyone has
any advice as to this as well, i'd be most grateful.
the site i'm building already has a large audience and i simple want to
ensure that i get it right...
tia
kris
--
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.325 / Virus Database: 182 - Release Date: 19/02/2002
--
More information about the thelist
mailing list