note 92824 added to function.ftp-nb-put
| From: | WebSee dot ru at osu1 dot php dot net | Date: | Tue, 11 Aug 2009 01:01:32 +0000 |
| Subject: | note 92824 added to function.ftp-nb-put | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-159301@lists.php.net to get a copy of this message | ||
How to realize the possibility of transferring data from one FTP-server to another via FXP?
<?php
// ...
$ansver = ftp_raw($ftp_conn1, 'PASV');
if (intval($ansver[0]) == 227) {
ftp_raw($ftp_conn2, 'PORT '.substr($ansver[0], $n = strpos($ansver[0], '(') +
1, strpos($m[0], ')', $n) - $n));
ftp_raw($ftp_conn1, 'STOR '.$filename); // need asynchronously (non-blocking)
ftp_raw($ftp_conn2, 'RETR '.$filename);
}
?>
----
Server IP: 78.41.104.8
Probable Submitter: 86.102.108.115
----
Manual Page -- http://www.php.net/manual/en/function.ftp-nb-put.php
Edit -- https://master.php.net/note/edit/92824
Del: integrated -- https://master.php.net/note/delete/92824/integrated
Del: useless -- https://master.php.net/note/delete/92824/useless
Del: bad code -- https://master.php.net/note/delete/92824/bad+code
Del: spam -- https://master.php.net/note/delete/92824/spam
Del: non-english -- https://master.php.net/note/delete/92824/non-english
Del: in docs -- https://master.php.net/note/delete/92824/in+docs
Del: other reasons-- https://master.php.net/note/delete/92824
Reject -- https://master.php.net/note/reject/92824
Search -- https://master.php.net/manage/user-notes.php