Results 1 to 2 of 2

Thread: Plugin API

  1. #1
    Registered User
    Join Date
    Oct 2007

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

  2. #2
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    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.

Similar Threads

  1. [HOW TO] Unregister a cPanel Plugin WITHOUT the plugin file
    By lakotahosting in forum Workarounds and Optimization
    Replies: 0
    Last Post: 02-21-2012, 12:54 PM
  2. Hooks in api or plugin for automated account creation??
    By sclewis12 in forum cPanel Developers
    Replies: 3
    Last Post: 09-22-2011, 12:12 PM
  3. Replies: 1
    Last Post: 06-04-2011, 10:52 AM
  4. Replies: 24
    Last Post: 11-23-2010, 08:44 PM