Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create USERS and PASSWORDS in PHP

Status
Not open for further replies.

OSR

Programmer
Jul 23, 2001
110
US
I want to create users and passwords in my .htpsswd file and I know I have to use the console command--
example:
htpasswd -c /usr/local/etc/httpd/users martin

can PHP run UNIX commands, otherwise i will have to use PERL

I know in the manual it says that if you put something in `backtick` marks PHP will attempt to run it as a command so if i put the above in `backticks` will PHP be able to create my user?

`htpasswd -c /usr/local/etc/httpd/users martin`

OR is there something else I can use to run commands in PHP?

Rocco is the BOY!!

SHUT YOUR LIPS...
ROCCOsm.gif
 
The web server user will need to have write access to the file, if it does, that should work flawlessly.

//Daniel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top