Re: Closing a FTP connection
| From: | Henrik Hansen | Date: | Wed, 02 May 2001 20:50:38 +0000 |
| Subject: | Re: Closing a FTP connection | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-51194@lists.php.net to get a copy of this message | ||
"Brandon Orther" <orther@webintellects.com> wrote:
> Hello,
>
> I have recently been using the ftp functions in php to get a lot of stuff
> done. My question is when I exit; a php script does it close the ftp
> connection for me? I thought it would since the script is completely
> closing also.
>
I think it just drops the connection, little like doing a ctrl+c i
guess, the best practise is to use ftp_close() as you sould always
close a database connection too, so in short it's a matter of coding
pratcise and style. (at least i think so :)
--
Henrik Hansen