"Read .htaccess file rights with php"-script wanted
- From: Jack.Hambabo@xxxxxxxxx
- Date: 26 Jan 2006 04:33:26 -0800
Hi,
I see that I can read the username, the user uses to authenticate
against a .htaccess forced login, by
<?php
echo "<p>Hello {$_SERVER['PHP_AUTH_USER']}.</p>";
?>
But that's not really what I want. What I want is:
A php script (or a build in function), which I'll give a filename and
php tells me whether the {$_SERVER['PHP_AUTH_USER']} user has the right
to see this file.
or
a php script (or a build in function), to which I'll give a filename
and it'll give me a list of all users that are allowed to see this
file.
It would be great, if the script would respect my ".htgroups"-file.
I tried searching for it, but I just found loads of possibilites to
logout. Could you maybe give me a hint, how I can solve my problem, or
where I can search for further information.
Very many thanks,
Jack
.
- Prev by Date: Formatting PHP Time
- Next by Date: What's wrong with this?
- Previous by thread: Formatting PHP Time
- Next by thread: What's wrong with this?
- Index(es):
Relevant Pages
|