note 77614 deleted from function.ftp-pwd by nlopess
| From: | nlopess@php.net | Date: | Thu, 06 Sep 2007 13:54:12 +0000 |
| Subject: | note 77614 deleted from function.ftp-pwd by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-130254@lists.php.net to get a copy of this message | ||
Note Submitter: steve dot heller at btinternet dot com
Reason: useless
----
If you're behind a firewall (let's face it, most of us are) you will probably need to put
the server into passive mode. Use something like the following:
if (ftp_pasv($connection, true))
{
ftp_put($connection, $remote_filename, $local_filename, FTP_BINARY) or die("Can't
transfer file to ftp server.\n");
ftp_put ( ... another file ...);
ftp_put (...);
print "Transferred File(s) Successfully \n";
}
else
{
print "Systype error: $errno, $errstr \n";
}