|
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
==================
[Back to original message]
|