STICKY]use 401 unauthorized for granting access to directory

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jakobdoppler
Forum Commoner
Posts: 46
Joined: Wed May 21, 2003 6:16 pm

STICKY]use 401 unauthorized for granting access to directory

Post by jakobdoppler »

hi everyone got a sticky wuestion

i have a couple of directories which should not be accessed by normal users.

if use htaccess in apache to set right to only a few users in need a authorization request by a window
but on the other hand i want these users to get acess to php cms by login with a html form or a 401 header unauthorized php function



now my question to gain access to apache closed directory i need a apache login like this
http://mtd.fh-hagenberg.at/intranet/200 ... index.html

but for a cms i need a php login to set cookies etc


is there any possibility to make a intranet php part of the cms and at the same time grant them access to folders? because i dont want my users to login twice--> for php and apache

perhaps a php function that grants also apache access


thx a lot for any advice jakob
Post Reply