"Read .htaccess file rights with php"-script wanted



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

.



Relevant Pages

  • RE: [PHP] PHP: remote file open problem
    ... your browser is just sending the local filename as a string and not ... Subject: [PHP] PHP: remote file open problem ... I have a HTML form through which I upload a file from the user's PC to the ... But my PHP script gives the error: ...
    (php.general)
  • Re: Attempt to de-mystify AJAX
    ... created and populated by the PHP script. ... string is initialized in line 1 to the opening select tag. ...
    (comp.databases.pick)
  • Re: File permissions for a wiki-like site
    ... the content using PHP scripts. ... content to be writable by my PHP script. ... The only one doing the writing will be the Apache user itself. ... The web user is used for things like ...
    (comp.lang.php)
  • Re: File permissions for a wiki-like site
    ... the content using PHP scripts. ... content to be writable by my PHP script. ... The only one doing the writing will be the Apache user itself. ... The web user is used for things like ...
    (comp.lang.php)
  • Re: File permissions for a wiki-like site
    ... the content using PHP scripts. ... content to be writable by my PHP script. ... The only one doing the writing will be the Apache user itself. ... The web user is used for things like ...
    (comp.lang.php)