note 92832 added to function.ftp-raw
| From: | WebSee dot ru at osu1 dot php dot net | Date: | Tue, 11 Aug 2009 06:38:32 +0000 |
| Subject: | note 92832 added to function.ftp-raw | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-159310@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: 93.93.89.253
Probable Submitter: 86.102.108.115
----
Manual Page -- http://www.php.net/manual/en/function.ftp-raw.php
Edit -- https://master.php.net/note/edit/92832
Del: integrated -- https://master.php.net/note/delete/92832/integrated
Del: useless -- https://master.php.net/note/delete/92832/useless
Del: bad code -- https://master.php.net/note/delete/92832/bad+code
Del: spam -- https://master.php.net/note/delete/92832/spam
Del: non-english -- https://master.php.net/note/delete/92832/non-english
Del: in docs -- https://master.php.net/note/delete/92832/in+docs
Del: other reasons-- https://master.php.net/note/delete/92832
Reject -- https://master.php.net/note/reject/92832
Search -- https://master.php.net/manage/user-notes.php