You are here: Can PHP exec Apache (.htaccess) user/password authentication? « All PHP « IT news, forums, messages
Can PHP exec Apache (.htaccess) user/password authentication?

Posted by eastcoastguyz on 11/29/05 01:53

I have a web site where web pages are set-up for clients to be able to
download project files. I'm doing this now with .htaccess and each user
has their own directory. So the user is given their user name/password
and the url for their web page (http://www.domain.com/username) Their
own web page comes up with their name on it and it lists their files.

OK, I was asked, "Why not just have a Login page, and the users enter
in their user name and password which takes them to the directory
already set-up for them now?" That sounds like a reasonable request.

Is there a way to request this from the user through PHP and then pass
it on to Apache's .htaccess for that user's directory to take care of
the authentication? In other words, as if they typed in the url
((http://www.domain.com/username) and logged in directly?

I hope my posting is clear. If not please ask questions, and of course,
be kind. ;-) Thanks!

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация