Home  >  Article  >  Backend Development  >  php ftp连接时间过长的问题

php ftp连接时间过长的问题

WBOY
WBOYOriginal
2016-06-02 11:31:241530browse

phpftp

ftp_get($conn_id,$filepath",$name,FTP_ASCII);
founction( ) ; //这个函数执行时间比较长
ftp_delete($conn_id,$name);
为什么当function()执行时间比较长时,后面的ftp_delete就会执行不了?而且后面用ftp_get返回失败?
获得的ftp连接状态返回“0”,连接应该是正常的啊
把ftp_delete放在founction前面就可以执行删除

求大神指教

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn