Re: Concept ional question

From: Date: Wed, 29 Jun 2005 15:50:02 +0000
Subject: Re: Concept ional question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-217828@lists.php.net to get a copy of this message
Personally I am an organization freak so I tend to do the first option - store the images in individual folders, generally using the unique username to create the folder itself. That way when I need to look at a group of images/files/whatever for that user, I can just pull up their directory. I seriously doubt there is much of a performance hit either way, but it would be interesting to benchmark that. <?php /* Stephen Johnson c | eh The Lone Coder http://www.thelonecoder.com stephen@thelonecoder.com 562.924.4454 (office) 562.924.4075 (fax) continuing the struggle against bad code */ ?> > From: Thomas <thomas.hochstetter@gmx.net> > Date: Wed, 29 Jun 2005 17:38:10 +0200 > To: <php-general@lists.php.net> > Subject: [PHP] Conceptional question > > Hi there, > > > > I have a conceptional question about storing images/files on a server. When > the application gives users a possibility to store up to 20 images, would it > be better to create a new folder for each signed-up user to store the images > in, or use one large folder. I have done the last quite often (just renamed > the files to the insert id) with good success. > > > > Any ideas? > > > > Thomas >

« previous php.general (#217828) next »