benaust Posted December 17, 2008 Share Posted December 17, 2008 Hi There Guys I am trying to make a folder which the files should be only accessible through php upload script in that folder and PHP force download script. I like to put PDF, Excel and Word files in there. And staffs that have been registered could download or upload which are registered in mysql. I have tried htaccess htpasswd but I have no idea now. None worked for me. I tried to make a custom htaccess login with php and that didn’t work either. Client like the fodder to be only accessible with registered staff and not through internet openly. Thanks Guys, any help appreciated. :-\ ??? Link to comment https://forums.phpfreaks.com/topic/137303-password-protected-folder/ Share on other sites More sharing options...
ted_chou12 Posted December 17, 2008 Share Posted December 17, 2008 I believe .htaccess should be the one u r looking for, because PHP cannot protect files that are in the directory, but htaccess can protect the entire directory that u place the files in.. See the second post in this thread: http://netfriending.co.cc/forum/viewthread.php?threadid=26 I am not sure why it doesnt work for u, if u still have trouble, let me know, id be glad to help Link to comment https://forums.phpfreaks.com/topic/137303-password-protected-folder/#findComment-717400 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.