Reply to Re: ftp_close() vs. ftp_quit()

Your name:

Reply:


Posted by ED on 05/22/07 09:41

"Markus" <derernst@NO#SP#AMgmx.ch> wrote in message
news:46517c0c$1_2@news.cybercity.ch...
> 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 Markus,

Just a thought, but maybe try sending an FTP QUIT command to the server
before closing the conn - it may give the server the hint to close its
connection(s):

ftp_raw($ftpconn, 'QUIT');
ftp_close($ftpconn);

cheers,
ED

[Back to original 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

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