By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,986 Members | 2,030 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,986 IT Pros & Developers. It's quick & easy.

Automatic htaccess authentication via PHP

P: n/a
Hi NG,

is it possible to achieve an automatic authentication via PHP?

What I'm trying to do is, protect one subfolder with htaccess, and then have
this subfolder-index.php opened by another .php-page which is part of a user
autentication system, i.e. users will already by identified and
authenticated there. Can this subfolder also be on a different server (given
that the automatic authentication via PHP is possible ...)?

cheers for your help!
--
Andreas
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Andreas Emmert wrote:
is it possible to achieve an automatic authentication via PHP?


Yes, it is possible. Just found out how to do it myself. HTaccess protect
the folder, and then call the URL like this:
http://username:pa******@www.domain....lder/index.php

Quite easy ;)
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.