note 66119 deleted from function.ftp-get by bjori
| From: | bjori@php.net | Date: | Mon, 15 May 2006 09:08:32 +0000 |
| Subject: | note 66119 deleted from function.ftp-get by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-111308@lists.php.net to get a copy of this message | ||
Note Submitter: Casmo at sauscrew dot org
Reason: in docs
----
Some ftp servers need a passive connection.
<?php
if($ConnectionID = ftp_connect($FTP_Server))
{
// Login
if($LoginResult = ftp_login($ConnectionID, $FTP_UserName, $FTP_Pass))
{
// Passive mode
ftp_pasv($ConnectionID, true);
// Connect with the FTP
if(ftp_get($ConnectionID, $XML_Lokaal, $XML_Extern, FTP_BINARY))
{
// ect
}
?>