wp-login.php help (3 posts)

  1. cartpauj
    Posted 8 years ago #

    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", "r");

    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.

  2. hanifb
    Posted 8 years ago #

    If you are trying to get a file through fopen through http:// you will need a http:// wrapper, maybe Snoopy?

    Its included with wp.

    Read more(php.net: fopen)

  3. cartpauj
    Posted 8 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic