Forum Moderators: coopster
I'm on a IIS server but I have no access to any configuration. I only have FTP access to the website's main folder.
In here, there is a HTTP password protected folder (from which I know the login/password). I'm storing there some files with different formats that I don't want public access to via URL. Here's the question:
Can I access to this folder with a PHP script so the in the user end never pops up the HTTP login/password prompt?
I will really appreciate any help or workarounds on this.
Thanks.
The solution:
I can create a header that protects the php pages based on the user's login and password. Whenever a user needs to download a file from the protected folder, I copy it it to a temporary location (with php's copy()), download it and then delete it.
Thanks!