Web Hosting Talk







View Full Version : Sending login and password to password protect dir using Php


joshuayip
05-29-2005, 04:11 AM
Hi all,

In Cpanel , there is an option to create password protected directory. But
lets say I would like to send these details in using php script, can that be done?

Thanks all for ya help

Joshua

orbitz
05-29-2005, 05:17 AM
If I remembered it correctly, this used to be done long time ago, but not anymore.

benb7760
05-29-2005, 09:18 AM
i remember that you can go to URLs like that with username:password@domain.tld

VolkNet
05-29-2005, 03:39 PM
You can.

If I understand correctly, you want to have a password protected directory that is created using php.

There is a tutorial at Zend's website. http://www.zend.com/zend/tut/authentication.php

If I understand your question correctly, the answer is there. :)

orbitz
05-29-2005, 06:50 PM
VolkNet,

yes, that's what he wanted, but the info from the link is back in the year of 2000. Ever since IE 6.0 and the like came out, that method does not work any more. You won't be able to pass password and username created by using htaccess (cpanel) in your php script. It was for some kind of security matter, I remember I onced wanted to do that about a year ago :)

joshuayip
05-29-2005, 07:54 PM
Thanks all for your answers. I think I have to work around on this one.

Joshua