Creating mysql databases with xmlapi.php issue
Hello.
I have some problems with the new version of cpanel v74.
Previously I used xmlapi to create mysql databases and users from php script. Now with this version I cant do it anymore.
Do anyone knows how to achieve this with v74?.
Thanks.
-
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 -
Hello, that class is working? in version 76? because i have tested and they give me a error. Thanks 0
Please sign in to leave a comment.
Comments
3 comments