Thanks so much for your reply. Unfortunately, it still links to my homepage index.htm. I must be a nut or what.
Quote:
According to my ISP, my domain path is:
Destination: Web space
Home directory: /.
Complete web server path: /homepages/1/d115147745/htdocs/.
OR /kunden/ homepages/1/d115147745/htdocs/.
What I do is this:
- first, I entered the path in the settins.php $hiddendirectory="/homepages/1/d115147745/htdocs/pdfprotection";
- then I put all my pdf files inside pdfprotection folder to be protected
- create the index.php (with direct link to my pdf files), insert protection and put inside pdfprotection folder
- on my normal html web page, I add a link
<A HREF="<?echo fileprotect("index.php",0); ?>">Read PDF<?A>
When I click on the "Read PDF", the browser takes me back to my homepage index.htm. Same problem with path /kendun/.../pdfprotection
I have no problem to protect a php file that is in the same directory as the protection.php is installed but no luck with PDF files inside a protected folder.
What have I done wrong? Full path not right? Please help. I am desperate.
Thanks.