Re: Conceptional question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 
> 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@xxxxxxxxxxxxxxxx

562.924.4454 (office)
562.924.4075 (fax) 

continuing the struggle against bad code

*/ 
?>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux