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.

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:
    1
    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:
    1
    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
     
Loading...

Share This Page