Re: problems with basic authentication .htpasswd called from php exec()
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: problems with basic authentication .htpasswd called from php exec()

From: starlightjen <jen@jeneration.com>
Date: Wed Jul 13 2005 - 02:47:24 CEST

Thanks Gordon,

I invoked htpasswd by using the exec() function in PHP like this:
exec("/usr/local/apache/current/bin/htpasswd -b .htpasswd $email
$password");

when the same thing is entered at the command line:
/usr/local/apache/current/bin/htpasswd -b .htpasswd my_email
my_password
it works!

Do you think my problem here is the 777 mod on the .htpasswd file? I
figured I'd open it all the way for testing purposes, and lock it down
after I get it running, but maybe I'm shooting myself in the foot.
any suggestions?
Received on Mon Oct 24 02:08:42 2005