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.

PHP Account Creation

Discussion in 'General Discussion' started by dearmatt, Jan 7, 2005.

  1. dearmatt

    dearmatt Registered

    Joined:
    Jan 7, 2005
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    My PHP Script dont work i have done today heres code

    done.php:
    Code:
    <?php
    include("config.php");
    require '/usr/local/cpanel/Cpanel/Accounting.php.inc';
    createacct ($host,$user,$accesshash,$usessl,$_COOKIE['domain'],$_COOKIE['user'],$_COOKIE['pass'],$user."_".$_COOKIE['plan']);
    ?>
    
    config.php:
    Code:
    <?php
    $host = "localhost";
    $user = "yerror";
    $usessl= '1';
    $accesshash = 'acceshash (Just removed)';
    ?>
    
    Please help me quick
     
  2. apogee

    apogee Well-Known Member

    Joined:
    Nov 8, 2004
    Messages:
    107
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Europe
    cPanel Access Level:
    DataCenter Provider
    here is my, works perfect, have fun

    PHP:
                    $newacc createacct($cpanel[host-ip],$cpanel[user],$cpanel[accesshash],$cpanel[usessl],$acctdomain,$acctuser,$acctpass,$acctplan,$contactemail);
     
  3. dearmatt

    dearmatt Registered

    Joined:
    Jan 7, 2005
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Thaxn

    thanx works now
     
Loading...

Share This Page