|
Posted by Markus on 05/21/07 13:50
purcaholic schrieb:
> On 21 Mai, 13:34, Markus <derernst@NO#SP#AMgmx.ch> wrote:
>> 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
>
>
> Hi,
>
> ftp_close() and ftp_quit() do the same job, ftp_quit() is an alias of
> ftp_close().
Thank you for this info. It is bad news for me, as it does contradict my
assumptions regarding my actual problem. Anyway both functions seem to
be wrongly documented in the manual:
void ftp_close ( resource $ftp_stream )
int ftp_quit ( int $ftp_stream )
As the signatures differ, they do not really seem to be aliases of one
another. But actually they seem to behave the same, both not according
to the manual: var_dump(ftp_close($conn_id)) and
var_dump(ftp_quit($conn_id)) both display bool(true)... I filed a bug
about this.
Anyway: Is there a possibility to find out whether a connection has been
terminated on the FTP server side, too? (I mean, besides asking the ISP
to give me access to log files.)
Navigation:
[Reply to this message]
|