|
Posted by purcaholic on 05/21/07 11:55
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().
The function ftp_close() needs the connetion ressource id as parameter
to close a earlier opened connection. Maybe you call ftp_close without
a ressource id or with a wrong ressource id, this could be a reason of
remained ftp connections.
purcaholic
[Back to original message]
|