Reply to Re: [PHP] Manage directory security on iis

Your name:

Reply:


Posted by "Richard Lynch" on 10/21/26 11:33

On Thu, December 1, 2005 1:03 pm, Mariano Guadagnini wrote:
> Hi guys, I wonder if it would be able to manage access to some
> directories using php, on a website using iis 6.0.
> To be more clear, the application i'm working on has a database with
> users, accounts and an administrator. So, i need to grant access to
> specific directories in the site to the users that the admin allow.
> The
> thing is that the accounts created are not present on the system (in
> this case, windows 2003 web edition), but only on the site database, i
> wouldn't like to create a system account per user so as to apply
> windows
> directories polycies. Is there a way to achieve this inside php? i
> know
> that with apache htaccess, this can be done, but i am not able to
> change
> the web server right now.
> Any ideas?

Create a table that has 'user_id' and 'directory' in it and who can
access which as a flag.

Then you check which directory you are in and the user and include()
your login page if they aren't allowed to access that directory
according to your database rules.

There's nothing tricky here, really...

--
Like Music?
http://l-i-e.com/artists.htm

[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

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