Creating a htpasswd

SpaceshipSpaceship
SpaceshipSpaceship
SpaceshipSpaceship
Watch

Tree

Established Member
Impact
9
Is there any PHP function for this? I have tried shell_exec("htpasswd -nb test testing"), but no luck.

Any ideas?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Try using fwrite..

I don't know how it encrypts the passwords, though.
 
0
•••
That's what I need is the encryption. The only reason shell_exec didn't work is because I don't have the right permissions on my client's server.
 
0
•••
Try using crypt() on the password and see if it works..

.htpasswd format:
username:password

edit: .. that makes a :P.. lol.. it's a : then p
 
Last edited:
0
•••
I'll try it, thanks :)

It works! Dan, you're amazing. ;)

Sadly:
We're glad that you're fond of this member, but please give some rep points to some other members before giving it to Dan Friedman again.
 
Last edited:
0
•••
DomainEasy: white label portfolios are live. Enable yours.

We're social

Escrow.com
Spaceship
Escrowly
CryptoExchange.com
Domain Recover
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back