You are here: Re: restricted access « All PHP « IT news, forums, messages
Re: restricted access

Posted by Good Man on 05/14/07 21:56

Good Man <heyho@letsgo.com> wrote in
news:Xns9930B5E3AE347sonicyouth@216.196.97.131:

> 3) A user *must* be logged in to retrieve the file. If you go with
> the file/directory renaming route, your user can bookmark the link to
> the secret PDF and pass it on to whomever they wish. With my proposed
> system, "streamFile.php" checks to see if the user is logged in before
> allowing the file to stream, and for users who aren't on your system -
> well, they can't download the file at all.

I should mention that the code for "streamFile.php" that I posted had the
"is the user logged in?" test removed for brevity :)

 

Navigation:

[Reply to this 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

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