Problem in Extract Files
hi guyz, i'm creating my own custom class for directadmin api using those class helpers to communicate get easily on the api... now i'm trying to create a function where i can extract file via direct admin api but what the problem is i got an error in return....
here is my script
and the error is here
Array ( [error] => 1 [text] => An error occured during extraction: [details] => You must enter a valid directory. eg: /dir )
of course i'm base the api comman supply from here
http://www.directadmin.com/features.php?id=652
I also try to excute another way just to list for files using this command and it works fine
Is ther anything i missed up? hope you can help thanks a lot....
hi guyz, i'm creating my own custom class for directadmin api using those class helpers to communicate get easily on the api... now i'm trying to create a function where i can extract file via direct admin api but what the problem is i got an error in return....
here is my script
PHP:
$oDa = new HTTPSocket;
$oDa->connect( HOST, PORT);
$oDa->set_login( USER,PASS);
$oDa->set_method( 'GET' );
$oDa->query('/CMD_API_FILE_MANAGER',array(
'action'=>'extract',
'path'=>'/public_html/wpbackup.tar.gz',
'page'=>'2'));
and the error is here
Array ( [error] => 1 [text] => An error occured during extraction: [details] => You must enter a valid directory. eg: /dir )
of course i'm base the api comman supply from here
http://www.directadmin.com/features.php?id=652
I also try to excute another way just to list for files using this command and it works fine
PHP:
$oDa->query('/CMD_API_FILE_MANAGER',array(
'path'=>'/public_html'));
Is ther anything i missed up? hope you can help thanks a lot....