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!

Account Creation with safe mode

Discussion in 'General Discussion' started by MarshallT, Feb 5, 2004.

  1. MarshallT

    MarshallT Registered

    Joined:
    Dec 31, 2003
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    151
    Hi, I'm trying to code my own account creation script for WHM but when I tried using the sample script on the cpanel website it errors because PHP Safe Mode is enabled on my server. Is there a way to code around it and have it able to setup account automatically with PHP Safe Mode on or will I have to turn it off for it to work? Thanks.

    -Marshall
     
  2. storkkel

    storkkel Member

    Joined:
    Mar 19, 2004
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    151
    Location:
    Thunder Bay, ON
    Copy the Accounting.php.inc file into your working directory and then in your code reference it to that directory.

    require '/home/username/public_html/directory/Accounting.php.inc ';

    Hope this helps you out.

    Steve Torkkeli
    www.brickhost.com
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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