Hello,
I was able to get list of FTP account using xmlapi.php before few days [14th Aug 2018]. But it's throwing following error now.
Error
Script I am using -
Appreciate if anyone can help.
I was able to get list of FTP account using xmlapi.php before few days [14th Aug 2018]. But it's throwing following error now.
Error
Code:
SimpleXMLElement Object ( [error] => Access denied [data] => SimpleXMLElement Object ( [result] => 0 [reason] => Access denied ) )
Script I am using -
Code:
include 'xmlapi.php';
$account = "xxxx";
$root_pass = 'xxxxx';
$ip = "xxx.xxx.xxx.xx";
$account = "xxxx";
$xmlapi = new xmlapi($ip);
$xmlapi->password_auth($account,$root_pass);
$list_ftpusers = $xmlapi->api2_query('Ftp', 'listftp',$account);
if($list_ftpusers){
print_r($list_ftpusers);
}else{
echo 'error';
}