I have a page in which i upload a circular & also select users who can view this page using multiple select dropdown box.
Now how to display the uploaded file to selected users when they login and not to other users.
Can anybody help.
Thanks in advance.
The easiest way would be to create a permissions table in your database and assign them to that specific permissions group then check it when they are viewing the uploaded files.
If you want to protect certain files from being downloaded, they can be stored above the root level. A php script would then be used to fetch the file, checking permissions first. IE: download.php?file=protected.doc
The download file would send protected.doc to the browser.