RottenBananas Posted July 23, 2008 Share Posted July 23, 2008 Hey, I want to make a website where many users will be uploading many many many files. Videos pictures music and others. The two methods I came across where uploading the actual file into the database or uploading the file to the server and keeping a reference of it in the database. Is there a difference in terms of performance for the two methods? Is there any difference at all? Which would be better for me if my site were to have thousands and thousands of files uploaded and i wanted to be able to stream them back? If the second method is better can you point me in the right direction of getting it accomplished? Thanks Quote Link to comment Share on other sites More sharing options...
vbnullchar Posted July 23, 2008 Share Posted July 23, 2008 better to upload the file to your server http://www.php.net/features.file-upload Quote Link to comment Share on other sites More sharing options...
Third_Degree Posted July 23, 2008 Share Posted July 23, 2008 you could also try ftp... Quote Link to comment Share on other sites More sharing options...
LemonInflux Posted July 23, 2008 Share Posted July 23, 2008 If you upload it to the database, you're using a huge amount of space, and it won't be (well, comparatively) a very fast retrieval. If you just put it on the server, all the code has to do is point the user to that. Basically, putting it on the server is easier. And if you structure it cleverly, you may find you don't even need database references. ---------------- Now playing: Lostprophets - A Town Called Hypocrisy via FoxyTunes Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.