关于ftp_nlist无法列表出目录的问题

其实重要的是看看PHP手册,上面写得很清楚,不过好象没放在十分显眼的地方,关于这个函数参数其实第二个参数里也可以带参数arguments,手册上写的:

The directory to be listed. This parameter can also include arguments, eg. ftp_nlist($conn_id, "-la /your/dir"); Note that this parameter isn't escaped so there may be some issues with filenames containing spaces and other characters.

不过注意的是有空格的目录。

Leave a Reply

Your email address will not be published.