I have spent a fair amount of time trying to figure this out, but not being a programmer I could have looked right at the solution and not known it. That said...
Here is my setup
I have a table that lists files
ID (key)
file_name
about
All of the files are located on the same server as the PHPR code, for example in the files folder, for example:
www.myserver.com/files/filename.pdf
I used PHPR to create a password protected system to access the list of files and the links to them.
Now the tricky part. I want to secure the files so that they can only be accessed though the PHPR project. But I don't want to force my users to have to type in a username and password every time they open a file. But I also don't want to have the default IUSR user to have read permissions for the folder as an unauthorized user could type the url into a broswer and open a file they should not have access too.
If there a way to code PHPR so that it passes a username and password to the windows server they attempting to open a file?
I have looked at LDAP but could not find a example that I could understand fully. The script can use a generic username and password for all users (i.e. hard coded into PHPR).
Any help would be greatly appreciated.