|
Posted by Markus on 05/21/07 15:28
Schraalhans Keukenmeester schrieb:
> At Mon, 21 May 2007 13:34:50 +0200, Markus let his monkeys type:
>
>> Hi
>>
>> I encountered that FTP connections seem to remain open on the FTP
>> server, though my FTP class has a shutdown function that ftp_quit()s the
>> connection.
>>
>> I did not find any info in the manual regarding the differences of
>> ftp_close() and ftp_quit(). Do I have to use ftp_close()? Or even first
>> close, then quit? Is it possible that ftp_quit() does not close the
>> connection on the FTP server? Or do I have to look for something else?
>>
>> Thanks for some hints!
>> Markus
>
> How exactly did you assert the connection wasn't closed after ftp_close()?
> Just tried it on my localhost and my isp's server, in both cases the
> connection is closed according to the vsftpd log (localhost) and the Plesk
> Control Panel (isp).
It is a guess. I located the delays in the PHP script in the ftp login
command, and I encountered the same delays connecting to the ftp server
with FileZilla, and the delays occur only after the PHP script had been
running some times. So my conclusion was that something in my script
slows down the ftp server; I don't know much about ftp, and assumed this
could possibly be open connections that are only closed after the
timeout period. I will ask my ISP how to access the ftp log to find out
more.
> Where did you find the types involved with ftp_quit()?
> The dutch php manual mirrors don't give any return and parameter
> type for ftp_quit():
> http://nl2.php.net/manual/en/function.ftp-quit.php
> http://nl2.php.net/manual/en/function.ftp-close.php
Yes I also found the correct documentations in the english version of
the manual; the errors are in the german version. Sorry for this badly
researched statement.
Navigation:
[Reply to this message]
|