You are here: Re: ftp_close() vs. ftp_quit() « PHP Programming Language « IT news, forums, messages
Re: ftp_close() vs. ftp_quit()

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация