Re: Performance question

From: Date: Tue, 16 Apr 2002 15:28:41 +0000
Subject: Re: Performance question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-93211@lists.php.net to get a copy of this message
I suggest using a html caching solution. Generate your html once, and store it in a file. I like http://0x00.org/php/phpCache/ "Mike Fifield" <Mike.Fifield@schwab.com> wrote in message news:FFE9B7BE532CD411872F00508BDFB8FE0EB76B96@n6010vmx.nt.schwab.com... > Ok I have a performance question. I run a wallpaper site; this is the url to > the main gallery page > http://www.cognitivedistortion.com/php/gal.php > <http://www.cognitivedistortion.com/php/gal.php> The > page does a dir read > and lists all pictures found in each directory, it does this every time the > page is loaded. Now at first this seemed like a incredible inefficient way > to do generate pages. The alternatives to this would be to generate a list > of the pictures and save them in a text file, or create a list of the > pictures and store them in a database. If I use a text file I will have to > read the text file every time the page is generated which seems like it > would take just as long as reading the file allocation table, which I am > doing now. As for the database to get the same thing done I would first have > to log into the database and then pull the information. > I was hoping to get some input as to which would be the fastest/ best way to > use. > > > Mike Fifield > Charles Schwab & Co, Inc. > WARNING: All e-mail sent to or from this address will be received by the > Charles Schwab corporate e-mail system and is subject to archival and review > by someone other than the recipient. > >

« previous php.general (#93211) next »