Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

trying to remotely unpack a zip file, then move the contents on cpanel servers. Some research led me to xmlApi class and the fileman module. And here my problem lies as Fileman module is returning html based on the cpanel theme (which we won't know) - and all I need is a list of files.

here is the code flow: * using ftp, the zip is uploaded * using Fileman module unpack zip * loop through unpacked files and move

here is my call to list the files:

$files_html = $xml->api1_query($user, "Fileman", "listfiles", array(
        "{$ftp_dir}",   //source dir
        0       //chooser

and it is returning the html for the filemanager - which is going to be different based on the cpanel theme. Surely their has to be another way to simply just list the files in that directory?

any help would be appreciated, been researching this for past day and can't find solution anywhere. cheers ;)

share|improve this question

1 Answer 1

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.