note 111840 added to function.ftp-get
| From: | bob at notallhere dot com | Date: | Wed, 03 Apr 2013 17:50:03 +0000 |
| Subject: | note 111840 added to function.ftp-get | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-194305@lists.php.net to get a copy of this message | ||
Don't want to use an intermediate file? Use 'php://output' as the filename and then
capture the output using output buffering.
ob_start();
$result = ftp_get($ftp, "php://output", $file, FTP_BINARY);
$data = ob_get_contents();
ob_end_clean();
Don't forget to check $result to make sure there wasn't an error. After that, manipulate
the $data variable however you want.
----
Server IP: 69.147.83.199
Probable Submitter: 169.197.2.21
----
Manual Page -- http://php.net/manual/en/function.ftp-get.php
Edit -- https://master.php.net/note/edit/111840
Del: integrated -- https://master.php.net/note/delete/111840/integrated
Del: useless -- https://master.php.net/note/delete/111840/useless
Del: bad code -- https://master.php.net/note/delete/111840/bad+code
Del: spam -- https://master.php.net/note/delete/111840/spam
Del: non-english -- https://master.php.net/note/delete/111840/non-english
Del: in docs -- https://master.php.net/note/delete/111840/in+docs
Del: other reasons-- https://master.php.net/note/delete/111840
Reject -- https://master.php.net/note/reject/111840
Search -- https://master.php.net/manage/user-notes.php