XML-like API alternate
Hello,
Anyone knows alternate script for creating FTP accounts using PHP script?
$xmlapi->api2_query($account, "Ftp", "addftp", array(
'user' => $_REQUEST['user'>,
'pass' => $_REQUEST['pwd'>,
'quota' => $_REQUEST['qt'>,
'homedir' => '/home/xxx/xxxx/ftp_dirs/'.$_REQUEST['homedir'>));
-
Hi @maheshbisen The following UAPI function should be useful for you: UAPI Functions - Ftp::add_ftp - Developer Documentation - cPanel Documentation Thanks! 0 -
Thank you for your prompt response. I have tried this UAPI but getting following error. It will be really helpful if you can provide example of the simple addFtp method. [31-Aug-2018 20:00:09 UTC] PHP Fatal error: Uncaught exception 'RuntimeException' with message 'There was a problem fetching the env variablecontaining the path to the socket' in /usr/local/cpanel/php/cpanel.php:1460 -
Hello @maheshbisen The link I provided includes examples, can you please include what you ran specifically here? Thanks! 0
Please sign in to leave a comment.
Comments
3 comments