Re: PHP & HTACCESS
| From: | Jean-Arthur Silve | Date: | Thu, 08 Feb 2001 08:55:29 +0000 |
| Subject: | Re: PHP & HTACCESS | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-38692@lists.php.net to get a copy of this message | ||
hello,
you can see with the following syntax :
http://login:passwd@www.yourdomain.com/protecteddir/
So, the user enter the code and passwd from a PHP form,
then you redirect him with this syntax.
But prefer redirection with a javascript, because M$ Explorer seems do not love this:
Header("Location: http://login:passwd@www.yourdomain.com/protecteddir/");
So in with a javascript, do the following :
<HTML>
<BODY>
<script language="javascript">
document.location="<?echo "http://$CODE:$PWD@www.yourdomain.com/protecteddir/";?>";</script></BODY> </HTML> where $CODE and $PWD are the login and password of the user. jean-arthur At 09:25 08/02/01 +0100, Christian Sakshaug wrote:
Hey Take a look at www.phpbuilder.com, www.devshed.com or one of they many good sites on the net. Here you will find tutorials, forums, tips etc, that you can use for increase your experiance. I also suggest books to increase your exp to... http://www.php.net/links.php for more links At 05:16 08.02.2001, you wrote:---------------------------------------------------------------- Le simple fait de passer par la fenetre ne suffit pas a la transformer en porte.Hello Everybody, Does anybody know or have some PHP code to read the htaccess file. I have a couple of directorys protected by the htaccess & htpasswd files on the Unix Apache server I use. But I want to create a webpage with input boxes to simulate the popup dialog that appears when entering the protected areas. So rather than enter the username & password in the dialog I want to enter them in a webpage. Its all for looks, to give the site a user friendly asthetic look. Please help. Pretty please.... Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.netBest Regards, Christian Sakshaug -- Email: christian@sakshaug.net Web: www.sakshaug.netTel: +47 913 95 618-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net