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!

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:
    151
    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:
    151
    Nevermind, I figured it out by using the "exec" function :)
     
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