screamingroses wrote in php

Uploading stuff

Alright, well, this is followup on my last post... Here's what I've been able to do so far...

-register new users
-check to make sure user name doesn't exist already
-check to make sure email address doesn't exist already
-convert \ n to < br >
-convert urls to html code and urls
-convert mailtos to html code and mailtos
-remember information if error occurs, thus user doesn't have to retype
-create user.php to show information, url is user.php?user=name

That said, I have a large question.. I have heard this before, but as it was beyond me then, I didn't pay much attention...

Should I upload to the database, or to the web?

See, I have to do a couple things...

Allow user avatar
Allow user photo
Allow desktop screenshot

So, that said, I have about 3 files that I want to allow the user to upload... I need to be able to restict height and width for each file, file size for each, and make sure they display with the right user name...

Uploading to the database has the potential to slow down the site, whilst uploading to the server has the potential to take up vast amounts of hard drive space... Which is the lesser evil? Where do I begin??

As always, any advice is appreciated...

-Shade