Reply to Re: [PHP] Conceptional question

Your name:

Reply:


Posted by Stephen Johnson on 06/29/05 19:33

>
> Any rough estimates what number of images would be too much?
> and does anyone think i should make folders for each user?
> Each user is limited to max 3mb of pics though...
>
> Thanks,
> Ryan

Personally I believe it is doubtful that you would ever reach the limit
unless you where going to be getting some serious traffic.

Ultimately, though, I think it is sound judgment to make separate folders
just for your own sanity. Think about file storage on your own machine
sitting on your desk. Do you take all your pictures and dump them into one
folder or do they contain some sort of organization.


Then look at your processes regarding how you access your files -- are you
storing the path in your dB ? Or do you read through the directory looking
for the file? If it is the latter then your application will suffer
performance wise searching a mass of files.

I have also been leery of overwriting another users files. I realize that
if you use a unique identifier on the file itself you prevent this, but
mistakes can be made, and I have always felt more comfortable sending the
user to his own directory where he can do as he likes



<?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

*/
?>

[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

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