FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » how to allow only certain users to download uploaded file
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
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 Go to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
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
==================
[Message index]
 
Read Message
Read Message
Previous Topic: he discount UGG boots are best known for its "Classic" sheepskin boots.
Next Topic: execution just stops when it gets to DB::connect
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 13:57:56 GMT 2024

Total time taken to generate the page: 0.04148 seconds