I'm using PHP's ftp_connect functions to retrieve the folders and files on my site. Are there any limits to the number of folders/files it can return? When I use my FTP client (cuteFTP) it returns well over 2000 files but when I use ftp_connect() functions in my PHP script it only fetches around 1680 files. Is there a php.ini configuration setting that is limiting this? Or some other file limiting setting? I'm on a Linux server.

Thanks...