swamp Posted February 12, 2008 Share Posted February 12, 2008 Hey - I've got a php script that allows me to view the files in a directory. Is there any way i can add a password to this page, but that is only required when trying to download / open a file from the list (as in you can still see the list without the password, but when you click on a file it will ask you for a password before redirecting you to the download. Ideally in a popup box) Would greatly appreciate any help, Many thanks. Link to comment https://forums.phpfreaks.com/topic/90715-password-protect-files/ Share on other sites More sharing options...
swamp Posted February 12, 2008 Author Share Posted February 12, 2008 Is it possible to do this? Link to comment https://forums.phpfreaks.com/topic/90715-password-protect-files/#findComment-465045 Share on other sites More sharing options...
haku Posted February 12, 2008 Share Posted February 12, 2008 1) dont bump your own queries. 2) yes. Please mark the topic solved now. Link to comment https://forums.phpfreaks.com/topic/90715-password-protect-files/#findComment-465046 Share on other sites More sharing options...
revraz Posted February 12, 2008 Share Posted February 12, 2008 You want him to mark it solved and you don't show him how or point him to a reference that shows him? 1) dont bump your own queries. 2) yes. Please mark the topic solved now. Link to comment https://forums.phpfreaks.com/topic/90715-password-protect-files/#findComment-465050 Share on other sites More sharing options...
haku Posted February 12, 2008 Share Posted February 12, 2008 He asked a question, I answered it. Problem solved. Link to comment https://forums.phpfreaks.com/topic/90715-password-protect-files/#findComment-465069 Share on other sites More sharing options...
walnoot Posted February 12, 2008 Share Posted February 12, 2008 He asked a question, I answered it. Problem solved. well, actually i would like the know HOW. So if you would be kind enough to explain? Link to comment https://forums.phpfreaks.com/topic/90715-password-protect-files/#findComment-465085 Share on other sites More sharing options...
swamp Posted February 14, 2008 Author Share Posted February 14, 2008 Hey, Sorry to bump this post, but didn't get much help the first time round. Cheers, Kieran Link to comment https://forums.phpfreaks.com/topic/90715-password-protect-files/#findComment-466670 Share on other sites More sharing options...
GameYin Posted February 14, 2008 Share Posted February 14, 2008 1) How do you bump things) 2) Change the access of your files. Go do a google search on it. Something should come up. I know the access of the files needs to be changed. Link to comment https://forums.phpfreaks.com/topic/90715-password-protect-files/#findComment-466702 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.