Reply to Re: [PHP] Concept ional question

Your name:

Reply:


Posted by Stephen Johnson on 06/29/05 18:50

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
>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация