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.

script to login to cpanel & create DB

Discussion in 'General Discussion' started by jamslam, Feb 14, 2004.

  1. jamslam

    jamslam Registered

    Joined:
    Feb 14, 2004
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    I know this has to be possible, and have pretty much everything figured out but a few things, and just need to be pointed in a general direction.

    Basically, what I want to do is write a script that logs into cPanel, and creates a database (using the "adddb.html?db=db_name").

    If you're wondering why I don't write a script to do this for me, it's because I don't have permission since I am on a shared server. The only way to create a database is to use cPanel's method.

    I know this has to work, I just need a little shove in the right direction.

    If it matters, this must be done using PHP.

    Any helpful insight is much appreciated!

    -jamslam
     
  2. jamslam

    jamslam Registered

    Joined:
    Feb 14, 2004
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Nevermind, I figured it out by using the "exec" function :)
     
Loading...

Share This Page