For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > January 2006 > "Read .htaccess file rights with php"-script wanted









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author "Read .htaccess file rights with php"-script wanted
Jack.Hambabo@gmail.com

2006-01-30, 6:56 pm

Hi,

I am searching for:

A php script (or a build in function maybe just asking the webserver),
which I'll give a filename and
php tells me whether the {$_SERVER['PHP_AUTH_USER']} user has the right
(due to the appropiate .htaccess and .htgroups-file) 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 read 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

Ken Chau

2006-01-31, 3:59 am

Maybe this?

http://www.php.net/manual/en/functi...-lookup-uri.php

-----

Ken Chau
http://www.gizzar.com

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com