Skip to main content

Creating mysql databases with xmlapi.php issue

Comments

3 comments

  • cPanelMichael
    Hello Daniel, Support for the XML-like output of our API was removed from the product in previously deprecated XML output in cPanel & WHM version 66. Important: You must use the JSON return format when you call API functions. You must update your scripts to use the JSON output format to call WHM API and cPanel API functions.
    If you'd like to develop PHP scripts that make use of UAPI or cPanel API 2 functions, then you'll need to use a different PHP client class. Here's a user-submitted PHP client class for UAPI that should help you get started:
    0
  • jason213
    Hello, that class is working? in version 76? because i have tested and they give me a error. Thanks
    0
  • cPanelMichael
    Hello @jason213, That's a user-submitted PHP client class for UAPI, so while it may offer insight into how you can create PHP scripts that make use of our UAPI functions, it's not supported or tested to work. Note that you can still use the official cPanel PHP client class found at:
    0

Please sign in to leave a comment.