Script to Add User to WordPress

Solution:

If you don’t want to use a plugin and you have your users and passwords stored in an array, simply throw it into a loop and use the ‘wp_create_user’ function. It takes 3 parameters (username, password and email). It will return the ID if successful and false if not.

http://codex.wordpress.org/Function_Reference/wp_create_user