Home »
Imported messages »
comp.lang.php »
how to allow only certain users to download uploaded file
how to allow only certain users to download uploaded file [message #175938] |
Wed, 09 November 2011 18:05 |
swapnil
Messages: 1 Registered: November 2011
Karma: 0
|
Junior Member |
|
|
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.
|
|
|
Re: how to allow only certain users to download uploaded file [message #175948 is a reply to message #175938] |
Thu, 10 November 2011 05:34 |
Jerry Stuckle
Messages: 2598 Registered: September 2010
Karma: 0
|
Senior Member |
|
|
On 11/9/2011 1:05 PM, swapnil wrote:
> 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.
Two ways. You can use .htaccess to limit file access if you use Apache
authentication. Otherwise you need to place the files outside of the
webroot directory and use PHP to validate the user and allow the file to
be downloaded, if authorized.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
|
|
|
Goto Forum:
Current Time: Fri Nov 22 01:35:17 GMT 2024
Total time taken to generate the page: 0.02396 seconds