This simple tutorial explains how to use a form to add users to a .htpasswd file. You must have Perl installed on your hosting, and you must have permission to use the exec() php command! First create a file called createuser.html - This page will have no php code, just the form! Create User
Username:
Password:
Before we start on the createuser.php file, that me just explain the format of the .htpasswd file: . Each line containes on user. . The username and password are seperated by a semicolon. . The password is encrpyed. A example is: Jonathan:,9QjBEo0mBqAY Lets get started on createuser.php: // End of script.