how to add a new user in a Linux Operative System using Apache and PHP
hsceeus
3:33 pm on Mar 17, 2006 (gmt 0)
i need some help from people n how to do it.
synth78
4:04 pm on Mar 17, 2006 (gmt 0)
That's operating system, but we won't quibble. Apache provides a perl script that you can use, dbmanage.pl, you might have to edit the first line to point to your perl install. To add a user, use dbmanage (dbfile) adduser (userid) in the shell.
nazlfrag
4:46 pm on Mar 17, 2006 (gmt 0)
To access the shell through php, use 'exec("scriptname", $output, $return) where $output is an array and $return is the return value of the command, often an error code. Use this with the above to add a user to a database securely (I hope) in php.