You are here: Re: Directory-View with PHP « PHP Programming Language « IT news, forums, messages
Re: Directory-View with PHP

Posted by Jerry Stuckle on 09/30/06 15:20

Tobias Wendorff wrote:
> Hi there,
>
> I've programmed an access-control via header()-function. It
> checks an username and password in database ... nothing special.
>
> Currently, the control gives access to a download, but I would
> like to allow special users to view the complete directory.
>
> AFAIK this is only possibly through ".htaccess" (Apache webserver).
> But then, I need to create an entry for each user in the database
> in the file :-(
>
> Would it be possible to allow this direclty through PHP?
> Of course, I could write dynamically into htaccess, but if
> several users would access the file at the same time ... URGHS :-)
>
> Thanks for help,
> Tobias
>
>

Just get the directory listing in PHP and display it. No need to do
anything with .htaccess.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

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

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