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.

Problem calling createacct() inside another function.

Discussion in 'General Discussion' started by HostSauce, Mar 28, 2006.

  1. HostSauce

    HostSauce Registered

    Joined:
    Mar 28, 2006
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    I set up a script to create cPanel accounts using the createacct() function available in the accounting.php.inc script.

    This function works perfectly if I call it directly, but it does not work if I put the createacct() function within another function.

    This code works for me:
    This code does not work for me:

    When the call does not work, createacct() returns the following:

    Has anyone else ran in to this problem before?
    Thanks!
     
    #1 HostSauce, Mar 28, 2006
    Last edited: Mar 28, 2006
Loading...

Share This Page