Title: wp-login.php help
Last modified: August 18, 2016

---

# wp-login.php help

 *  [cartpauj](https://wordpress.org/support/users/cartpauj/)
 * (@cartpauj)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/wp-loginphp-help/)
 * I have added this code to the wp-login.php file but it’s not getting executed
   can someone please help me know why:
 * > $f = fopen (“[http://CPUSERNAME:CPPASSWORD@MYDOMAIN:2082/frontend/rvblue/mail/doaddpop.html?email=$user_login&domain=MYDOMAIN&password=PASSWORD&quota=200&#8221](http://CPUSERNAME:CPPASSWORD@MYDOMAIN:2082/frontend/rvblue/mail/doaddpop.html?email=$user_login&domain=MYDOMAIN&password=PASSWORD&quota=200&#8221);,“
   > r”);
   >  fclose($f);
 * It’s supposed to create a cpanel email account using the username the user chose
   when he registered for my site. The code is in the right place I am 100% certain
   of that…I’m not certain I coded it right though.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [hanifb](https://wordpress.org/support/users/hanifb/)
 * (@hanifb)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/wp-loginphp-help/#post-647401)
 * If you are trying to get a file through `fopen` through http:// you will need
   a http:// wrapper, maybe [Snoopy](http://sourceforge.net/projects/snoopy/)?
 * Its included with wp.
 * Read more([php.net: fopen](http://www.php.net/fopen))
 *  Thread Starter [cartpauj](https://wordpress.org/support/users/cartpauj/)
 * (@cartpauj)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/wp-loginphp-help/#post-647497)
 * Thanks I figured it out. I have integrated a previous script I had with wordpress’
   registration system to automatically create an E-Mail account on my cpanel for
   all users that register on my site. If anybody is interested on how i did this
   let me know.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘wp-login.php help’ is closed to new replies.

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [email](https://wordpress.org/support/topic-tag/email/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [wp-login.php](https://wordpress.org/support/topic-tag/wp-login-php/)

 * 2 replies
 * 2 participants
 * Last reply from: [cartpauj](https://wordpress.org/support/users/cartpauj/)
 * Last activity: [18 years, 7 months ago](https://wordpress.org/support/topic/wp-loginphp-help/#post-647497)
 * Status: not a support question

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
