[eluser]djsc00p[/eluser]
There is a little annoyance that you might run into when you store all files in the same directory (or even all user directories in one directory, which in turn contain user photos).
If the number of photos and/or number of users gets really large then you're going to have tons of files/directories in one directory. What I would do is create some class that organizes these files and directories into a tree of 2 to 3 levels. Then just store the path in database.
I hope that helps.
[quote author="$ilovephp" date="1271930868"][quote author="Bart v B" date="1271930486"]please.. no pics into a database
there is a way to store pics in a database with a BLOB.
But its slow.
A better way is to store the filename into a database.[/quote]
I appreciate your answer. So, what do you think is the best way to store it? I mean, all the uploaded pictures will be stored into a single folder? Or have one folder for each user?[/quote]