SarahB12 Posted January 20, 2010 Share Posted January 20, 2010 Hey Guys, I was wondering if it is possible to secure a folder will all types of files (images/pdf/word/etc) using php. I do not have the option of using .htaccess. Please let me know of any ideas you might have. Thanks! ~ SarahB ~ Quote Link to comment https://forums.phpfreaks.com/topic/189207-secure-a-folder/ Share on other sites More sharing options...
wildteen88 Posted January 20, 2010 Share Posted January 20, 2010 You can either store these files within a folder that is outside of your sites root folder. Or store them in a database. Quote Link to comment https://forums.phpfreaks.com/topic/189207-secure-a-folder/#findComment-998896 Share on other sites More sharing options...
SarahB12 Posted January 20, 2010 Author Share Posted January 20, 2010 You can either store these files within a folder that is outside of your sites root folder. Or store them in a database. Thanks for the information wildteen, I appreciate it! Storing these files outside of the root isn't an option, but I am interested in storing them in a database. The users would have to go through an authentication process in order to access the files. Do you have any resources/tutorials that I can follow to set the files up through a database? Sorry, I have Googled how to store them but nothing very helpful has come up. Thanks again! ~ SarahB ~ Quote Link to comment https://forums.phpfreaks.com/topic/189207-secure-a-folder/#findComment-998944 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.