The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Change domain name using PHP?

Discussion in 'General Discussion' started by freakin'me, Jul 9, 2005.

  1. freakin'me

    freakin'me Member

    Joined:
    Jul 8, 2005
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    I've a reseller account, and would like to change the domain names of my custiomers using php.

    Anybody that can tell me how to do that?

    Thanks in advance.
     
  2. RavenSoul_

    RavenSoul_ Well-Known Member

    Joined:
    Nov 2, 2004
    Messages:
    95
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Belgium
    I do not understand your question. :confused:

    Could you explain it with an example?
     
  3. freakin'me

    freakin'me Member

    Joined:
    Jul 8, 2005
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    Suppose I create an account for someone using PHP, and I give it the domain: domain.tld

    After a year, my customer wants to use the hosting for something else, but wants to keep his account but then with some other domain name. Now I'd like to use PHP to change the domain name for that user, how do I do that?
     
  4. RavenSoul_

    RavenSoul_ Well-Known Member

    Joined:
    Nov 2, 2004
    Messages:
    95
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Belgium
    That's a rather unusual question...

    You can write a script using cPanel Accounting PHP module (http://www.cpanel.net/remoteaccess-php.html).

    Just ask yourself:

    Is this rare request worth the time and work?

    Change the domainname in WHM with one single click :p
     
  5. freakin'me

    freakin'me Member

    Joined:
    Jul 8, 2005
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    OOwh? How?

    I've been looking around, but couldn't find it. (wihich doesn't mean it aint there)
     
  6. RavenSoul_

    RavenSoul_ Well-Known Member

    Joined:
    Nov 2, 2004
    Messages:
    95
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Belgium
    Account Functions > Modify an Account

    :rolleyes:
     
Loading...

Share This Page