Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    151
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice