From: "Furry, Tim"
.......
Joseph,
I don't know if this will work in your situation or not, but I've
had good luck using two different methods of restricting document
access.
1. Put the content in the database. Your regular PHP files can
check authentication and/or authorization, and if the appropriate
credentials are submitted, you can open a new browser window, set
the MIME type for the content, and copy the content to the new
window using PHP. This is a good solution for when you don't
have access to the server's file system outside your web space
(as in a hosted site).
JH writes: Yes,that appeals. Bit of rust to scrape off before
I'm fully clear, but I recall a while back Cheryl recommended
that for an earlier site of mine.
2. Put the content in a folder that's not in a web-servable
location. You can use PHP the same way to check credentials and
then open and copy the file line-by-line to a browser, but the
file itself should not be directly servable. This is good for
when you run your own servers or if you're accessing content on
other machines remotely.
JH writes: Yes, that makes sense too. This is a pdf so I'm not
sure how well it would fit this. But it might be good for other
ideas ahead.
Either way, you'll want your PHP to be pretty stout to protect
the content, but this way you don't have to worry about people
hacking the URLs and finding the files.
Tim
jh writes: This is the key for me. Make it easy for payers but
impenetrable for others.
Joseph
____ The WDVL Discussion List from WDVL.COM ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] or
use the web interface http://e-newsletters.internet.com/discussionlists.html/
Send Your Posts To: [email protected]
To change subscription settings, add a password or view the web interface:
http://intm-dl.sparklist.com/read/?forum=wdvltalk
________________ http://www.wdvl.com _______________________
You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016
Please include the email address which you have been contacted with.