Reply to Re: restricted access

Your name:

Reply:


Posted by Tom on 05/11/07 17:07

"Zoe Brown" <zoenaomibrown@N-O-S-P-A-A-Mtesco.net> wrote in message
news:kN%0i.1430$7l6.542@newsfe7-win.ntli.net...
> Hello all.
>
> I have a client who wants to be able to restrict access to a PDF file to a
> specific user. They want a control panel where they can create a user
with
> username/password and upload the PDF. So far so good.
>
> But what is the best way to restrict access to the PDF ? I was thinking
of
> storing it above the root so that it was not in the public domain, when
the
> user requests it, prompt for username/password and then copy the file with
a
> random filename to a public place. Then delete is straight afterwards.
>
> There has to be a better way though ?
>
> thanks
>
> Zoe
>
>

I've seen PHP programs like PHPBB that do a good job of managing
permissions, but not quite what you would need. If you just needed to
control access to a few people it could be simple, but if you are trying to
manage people that may subscribe/unsubscribe over time then there's a lot
more to worry about.

Depending on what resources you had access to, it may be easier setting up
the permission on your web server or the .htaccess file. If you had limited
access and/or needed something more complex you may be able to find a
publicly available PHP/MySQL authentication solution you can download and
install or can build you own.

Tom
--
Newsguy.com - Express Accounts - 30 GB $9.95 / month

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация