----- Original Message ----- 
From: "James Keeline" <[EMAIL PROTECTED]>
To: <php-list@yahoogroups.com>
Sent: Sunday, March 02, 2008 6:47 PM
Subject: Re: [php-list] benchmarking: dir listings
>
> Yes, if the directories don't change frequently then accessing the DB is a 
> good
> way to go.  How are you loading the table?  And how often?  If you are 
> using a
> recursive function in PHP to do this, you might get even better results 
> with a
> Unix/Linux find command.  If you're using Windows then the PHP route might 
> be
> the best way to go.
>
> James

it shows one directory at a time, recursive isn't necessary. the production 
server is centos linux. do you think running the ls command instead of using 
the opendir php command would have better performance? sounds kinda.. like 
unnecessary complication. there are about 8000 page views a day. probably 
95% of them require the listing of a directory's contents. 

Reply via email to