Results 1 to 2 of 2

Thread: Plugin API

  1. #1
    Registered User
    Join Date
    Oct 2007
    Posts
    1

    Default Plugin API

    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
    Last edited by 22chris22; 02-04-2008 at 12:40 AM.

  2. #2
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,296
    cPanel/WHM Access Level

    Root Administrator

    Default

    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.

Similar Threads

  1. Replies: 1
    Last Post: 06-04-2011, 09:52 AM
  2. Replies: 24
    Last Post: 11-23-2010, 07:44 PM
  3. Possible Plugin?
    By JohnnyD1995 in forum New User Questions
    Replies: 2
    Last Post: 08-19-2010, 03:27 PM
  4. new plugin
    By phphantom in forum New User Questions
    Replies: 0
    Last Post: 02-12-2008, 03:51 PM
bargain