Page 4 of 4 FirstFirst ... 234
Results 46 to 55 of 55

Thread: create account cpanel - php

  1. #46
    Member
    Join Date
    Dec 2010
    Posts
    35

    Default Re: create account cpanel - php

    Actually, I already tried this, but I tried:

    'package' => $get_package

    ..because I didn't know what parameters to use

    I will try the response above. It seems promising. I hope it works!

  2. #47
    Member
    Join Date
    Dec 2010
    Posts
    35

    Default Re: create account cpanel - php

    wow, finally, it works!

    Also, I just got my website approved by AlertPay to accept credit cards, so looks like I will be able to launch my website today

    I went to bed at 12:00am and I didn't sleep very well. I got back up at 5:00am just to see what the progress was, and when I checked AlertPay approved my site and this thread was answered. So, I am gonna stay up and finish my site now

    I just have one more question.

    If I want to add the customer email to the account, what is the paramater for that?

    Also, thanks HEAPS for helping me! I would {{{never}}} work it out all by myself. But I also would have never given up, either. I would have just went crazy after failing for weeks

  3. #48
    Member
    Join Date
    Dec 2010
    Posts
    35

    Default Re: create account cpanel - php

    Never mind, I found a list of all the paramaters here:

    WHM Functions | Standardized Hooks

    I tried:

    'contactemail' => $customer_email

    ..and it worked!

    I'm DANGEROUS now!

    *working working*

    Thanks for the help!

    I am very happy now

  4. #49
    Integration Developer cPanelDavidN's Avatar
    Join Date
    Dec 2009
    Location
    Houston, TX
    Posts
    570

    Default Re: create account cpanel - php

    MrLeN,

    The last link you posted is for the Standarized Hook System, not for the Remote API. They are two different things. You can find the available Remote API calls (used for things like creating, modifying, or removing accounts) here:
    Remote API Documentation (XML and JSON APIs)

    Under the "Functions" section on that page, you'll see that we have organized the different API calls into logical groups for you convenience: such as "Account Functions" section that contain stuff related to WHM accounts, and "Reseller Functions" section for administrating your reseller accounts, etc.

    Specifically, you should look at the previous link I posted, for the createacct function:
    Remote API Reference: Create Account (createacct)

    Under the "Input" section on that page, you will find all the available parameters for createacct()

    Regards,
    -DavidN
    David Neimeyer
    Integration Developer

    sdk.cpanel.net
    APIs: XML-API API1 & API2
    Check Out: Developer Downloads Integration Blog
    Need Support? Support Ticket Developer Forum Feature Requests

  5. #50
    Member
    Join Date
    Dec 2010
    Posts
    35

    Default Re: create account cpanel - php

    Hey, it worked -- that is good enough for me!

    haha!

  6. #51
    Registered User
    Join Date
    Apr 2012
    Posts
    3
    cPanel/WHM Access Level

    Website Owner

    Default Re: create account cpanel - php

    How To get All the list of email accounts from cpanel through phpscript. . . . .

  7. #52
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,307
    cPanel/WHM Access Level

    Root Administrator

    Default Re: create account cpanel - php

    Quote Originally Posted by raininbrain07 View Post
    How To get All the list of email accounts from cpanel through phpscript. . . . .

    Examples/api2_example.php does this over at https://github.com/CpanelInc/xmlapi-php - just be sure to download the PHP class and put that file in Examples/api2_example.php and set your settings in api2_example.php before running on your cPanel &WHM server.

  8. #53
    Member
    Join Date
    Jul 2012
    Posts
    26
    cPanel/WHM Access Level

    Website Owner

    Default Re: create account cpanel - php

    A great thread that's so close to answering a problem I have.

    I have just purchased some domains in bulk and would like to add them to my WHM account giving each it's own cPanel account. Is there a script available (or anybody who can help for a price) that I can enter my WHM details in and a list of domains and have each account created with a random username and password at all? Ideally it wouldn't be WHM account specific as I have numerous WHM accounts and I would like to share the domains across each one.

    Thanks for any help in pointing me to such a script, or indeed if one can be made for me for a price.

    Thank you.

  9. #54
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    10,090
    cPanel/WHM Access Level

    Root Administrator

    Default Re: create account cpanel - php

    Quote Originally Posted by glenn0 View Post
    A great thread that's so close to answering a problem I have.

    ...
    Please start a new thread.

  10. #55
    Member
    Join Date
    Jul 2012
    Posts
    26
    cPanel/WHM Access Level

    Website Owner

    Default Re: create account cpanel - php

    Quote Originally Posted by Infopro View Post
    Please start a new thread.
    Thanks for the reply.

    I have started a new thread in the 'New User' section so hopefull;y somebody can steer me in the right direction from the beginning.


Page 4 of 4 FirstFirst ... 234

Similar Threads

  1. Auto Create Account w/PHP
    By markfrompf in forum cPanel Developers
    Replies: 24
    Last Post: 01-26-2012, 08:39 AM
  2. How to create email account through PHP on CPanel
    By dmaulik142 in forum cPanel Developers
    Replies: 0
    Last Post: 06-05-2008, 01:31 AM
  3. Is there any way to create a new FTP account from PHP?
    By arkamax in forum cPanel & WHM Discussions
    Replies: 3
    Last Post: 06-15-2005, 06:07 AM
  4. wwwacct -- Create Account [php]
    By dotenetted in forum cPanel & WHM Discussions
    Replies: 4
    Last Post: 03-13-2005, 10:30 PM
  5. [PHP] Create Account
    By dotenetted in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 02-03-2005, 11:23 AM