PHP MySQL/Folder - Protected file system
Posted on 2014-02-21
I need an advice.
I know that the best way to upload and save files in a website is to upload them to a folder and save the file and link information in the database. Is simple and cheap when come to web-hosts (disk space is cheaper than paying for big database).
But i need to upload and protect video files. The website i'm building for my client will have files as the product do sell so.. i can't leave them open to download.
What's the best approach? store the files inside a blob field in mysql right?
.htaccess will not be practical or possible for this i think..
Or maybe there is a good service for this kind of features i don't know?..
Thx in advanced