ftp_nlist限制在数组中放入9999个元素 [英] ftp_nlist limiting out put to 9999 elements in the array

查看:39
本文介绍了ftp_nlist限制在数组中放入9999个元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在ftp_nlist()上遇到问题.看来,当我尝试使用此函数时,它将数组中返回的元素总数限制为9999.为什么会这样,又该如何解决呢?我有一个ftp目录,我正在尝试从中提取所有文件,该目录中有超过20,000个文件.

I am having an issue with ftp_nlist(). It appears that when I try to use this function it is limiting the total amount of elements returned in the array to 9999. Why is this, and how can I get around this? I have a ftp directory that I am trying to pull all the files off of, that directory has over 20,000+ files.

它与php.ini有关系吗?

Could it have something to do with php.ini?

感谢您的帮助!

推荐答案

您遇到的问题与FTP递归限制有关,这听起来像是设置为9999.可以通过编辑FTP配置来引发此问题.文件.如果您在服务器上使用Pure-FTP,则有一个文章可以为您提供帮助.

The issue that you're experiencing is related to the FTP recursion limit, which sounds like it is set to 9999. It can be raised by editing your FTP config file. If you are using Pure-FTP on your server, there's an article that can help you with that.

这篇关于ftp_nlist限制在数组中放入9999个元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆