API File Manager Problem. Not listing all files

cpsync

Verified User
Joined
Apr 9, 2010
Messages
11
Hi

I am not sure why I get many errors ( ! ) when I study the file manger API !

Now, I see a strange issue that the file manager api is not listing the complete list of files in a directory

I use the da connect class I got from this forum

And here is the code and output


PHP:
$path = $_REQUEST['path'];
$array = array("path" => $path) ;
$files = connect_da($serverip,"/CMD_API_FILE_MANAGER",$array,"GET",$username) ;

echo "<pre>"; 
print_r($files);
echo "</pre>";


connect_da is a function that takes the following arg

$serverip = IP address of the server
$query
$array = input
method = GET or POST
$username = for login-as feature, password is the password of admin


Result

http://screencap.net/f/19343113.png

ie, listing only 7 files and something is breaking the flow at the end

However, the folder contain 17 files

http://screencap.net/f/3213d661.png



Please let me know what's the problem.

Same case with GET and POST
 
Back
Top