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 Link to comment https://forums.phpfreaks.com/topic/116108-different-methods-of-uploading-files-to-site/ 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 Link to comment https://forums.phpfreaks.com/topic/116108-different-methods-of-uploading-files-to-site/#findComment-597086 Share on other sites More sharing options...
Third_Degree Posted July 23, 2008 Share Posted July 23, 2008 you could also try ftp... Link to comment https://forums.phpfreaks.com/topic/116108-different-methods-of-uploading-files-to-site/#findComment-597251 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 Link to comment https://forums.phpfreaks.com/topic/116108-different-methods-of-uploading-files-to-site/#findComment-597254 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.