Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    May 2007
    Posts
    1

    Default Account Creation Scripts

    I recently purchased a reseller's account using cPanel. I need to automate account creation, but the cPanel website didn't have enough information for me. Here is the basic script I am working with , not sure if this all I need to create an account. I have a few questions...

    // Not familiar with this first line, #! means what? Is this basically telling PHP where the PHP cPanel module is located? I checked my account and couldn't find this in my directory, what do I need to install this module?
    #!/usr/local/cpanel/3rdparty/bin/php
    // Is this require file part of the module?
    require '/usr/local/cpanel/Cpanel/Accounting.php.inc';

    // Should I keep $host as localhost if the account is being created from a script within my account? If I sign up remotely, should I enter the full http address?
    $host = "localhost";
    // Is user my username I use to access my reseller's account?
    $user = "";
    //$accesshash and $usessl is unfamiliar to me, could you please explain this to me?
    $accesshash = '';
    $usessl= "";
    // $acctdomain will be posted from the signup form. However, considering the client may not already have this domain, what will the address to the site be?
    $acctdomain= "";
    $acctuser= "";
    $acctpass= "";
    // Should $acctplan just be the string for my package, such as "released_Basic"?
    $acctplan= "";

    $accountSetup = createacct($host,$user,$accesshash,$usessl,$acctdomain,$acctuser,$acctpass,$acctplan);

    My main concern is just having the correct module and scripts installed allowing me to create account scripts. My second biggest concern is the $accesshash and $usessl. I am not familiar with Secured Socket Layer, and I am assuming this is what I use for the Remote Access Key from my WHM.

    Any help will be greatly appreciated.
    Jesse

  2. #2
    Registered User
    Join Date
    Mar 2008
    Posts
    1

    Default What !

    $accountSetup = createacct($host,$user,$accesshash,$usessl,$acctdo main,$acctuser,$acctpass,$acctplan); => this line have a error
    Code:
    Parse error: syntax error, unexpected T_STRING in /home/pro24h/public_html/whm.php on line 21

  3. #3
    Member viraj's Avatar
    Join Date
    Sep 2006
    Location
    India
    Posts
    209
    cPanel/Enkompass Access Level

    DataCenter Provider

    Red face

    Hi Jesse,

    Please go through these links :

    http://www.cpanel.net/plugins/xmlapi/

    OR

    http://www.phpclasses.org/browse/pac...oad/targz.html

    Hope they are useful

Similar Threads & Tags
Similar threads

  1. Replies: 7
    Last Post: 07-23-2011, 08:53 PM
  2. Replies: 2
    Last Post: 10-26-2009, 07:28 AM
  3. detailed php account creation scripts
    By dululu in forum cPanel and WHM Discussions
    Replies: 15
    Last Post: 03-30-2005, 01:01 PM
  4. Auto Account creation scripts
    By ndj1022 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 03-28-2003, 12:01 AM
  5. detailed php account creation scripts
    By marcos in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 02-25-2003, 11:39 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube