hello friends,
In my website i have some PDF files that are accessible by authenticated users only.
when i logged in any forum by entering username and password i can able to post my questions as new threads.
suppose i directly enter into
<!-- m --><a class="postlink" href="http://www.xyz.com/forum/forumdisplay.php?f=70">http://www.xyz.com/forum/forumdisplay.php?f=70</a><!-- m -->
and click new thread, it gives error message
" You are not logged in or you do not have permission to access this page".
This type of protection i want to give to my webpage. how do i achieve it in PHP.You can use .htaccess files in Apache (which would probably be easier for you than the next solution, which is)
You'd have to build a user authentication system in PHP.
Either way, it's not as simple as "just adding a permissions system".
In my website i have some PDF files that are accessible by authenticated users only.
when i logged in any forum by entering username and password i can able to post my questions as new threads.
suppose i directly enter into
<!-- m --><a class="postlink" href="http://www.xyz.com/forum/forumdisplay.php?f=70">http://www.xyz.com/forum/forumdisplay.php?f=70</a><!-- m -->
and click new thread, it gives error message
" You are not logged in or you do not have permission to access this page".
This type of protection i want to give to my webpage. how do i achieve it in PHP.You can use .htaccess files in Apache (which would probably be easier for you than the next solution, which is)
You'd have to build a user authentication system in PHP.
Either way, it's not as simple as "just adding a permissions system".