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.

Plugin API

Discussion in 'cPanel Developers' started by 22chris22, Feb 4, 2008.

  1. 22chris22

    22chris22 Registered

    Joined:
    Oct 14, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    I am looking to create a cheap script installer. It will be much less than Fantastico.

    If it is possible, can someone tell me how to create a MySQL DB using PHP? I don't think i can do this using just PHP because cPanel does not give sufficient permissions to mysql users. I know I can go the "File Get Contents" route, but thats not secure.
    Thanks for your help.
    Chris
     
    #1 22chris22, Feb 4, 2008
    Last edited: Feb 4, 2008
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Are you creating this as a cPanel/WHM plug-in or a stand-alone PHP script? As a user, you will be unable to create databases in the traditional PHP way. However, you may wish to use the XML-API to call an appropriate API2 function that would create the database. The downfall to this: one must be a reseller to use the XML-API.
     
Loading...

Share This Page