[PHP] Re: Restricted access

2003-08-14 Thread Kae Verens
Ciprian Trofin wrote: Hi All, I want to give access to resources (PDFs and some RTFs) only to registered users and I also want to deny that kind of access to people that guess the URL. I guess it is all about putting these files outside the web-tree and somehow putting PHP to work. Could you

[PHP] Re: Restricted access

2003-08-14 Thread Scott Fletcher
There is a easier way, I use this all the time and I don't have a problem with it. Sometime the header() need some tweaking to make it work right. You must include an exit() function after the header() due to bugs and bugs in IE. This script below is what I use for file download. Instead of