Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Sep 2003
    Posts
    50

    Default account creation, remote access PHP, catching errors

    Hi,

    I am working on a PHP script using the the remote access functions of WHM. I have this working nicely.

    I would like to know how to deal with errors. As far as I can tell, when you create an acount the function will output the text you would normally see in WHM when you create and account. I would not want to output this information to the user.

    I can't figure out a way to check in my PHP code if the account has been created ok with no errors. Is there a way to do this?

    Also, is there some kind of extra documentation on the php remote access in addition to http://www.cpanel.net/remoteaccess-php.html. I would like to know exactly what I can pass to the functions and what I can expect to have returned. I only found out how to add a contact email when creating an account by searching through this forum.

    Thanx,
    Jamie

  2. #2
    Member
    Join Date
    Sep 2003
    Posts
    50

    Default

    Having said that its working nicely I have noticed that the contact email is being added to the account. I am using code similar to the solutino in this thread http://forums.cpanel.net/showthread.php?t=34125

  3. #3
    Member
    Join Date
    Sep 2003
    Posts
    50

    Default

    right, sorted the contact email, I edited the Accounting.php.inc file to add that in. I am going to add the ability to have a reseller account also.

    I still have no way to catch errors when creating an account.

Similar Threads & Tags
Similar threads

  1. Replies: 0
    Last Post: 05-29-2006, 11:57 AM
  2. CPanel : Account Creation Module (Remote Access Key)
    By rochen in forum cPanel and WHM Discussions
    Replies: 34
    Last Post: 07-05-2005, 06:00 PM
  3. Remote Account Creation With PHP
    By armega in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 07-15-2004, 12:41 PM
  4. It's possible creation of subdomain via remote access PHP
    By bunnitao in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 07-14-2004, 07:18 AM
  5. PHP Remote Account Creation Script
    By cybercom in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 06-04-2003, 08:12 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube