note 63649 modified in function.readfile by bjori
| From: | bjori@php.net | Date: | Mon, 27 Mar 2006 14:07:22 +0000 |
| Subject: | note 63649 modified in function.readfile by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-106763@lists.php.net to get a copy of this message | ||
If you want to read a file from your ftp server use this:
readfile("ftp://" . $username . ":" . $password .
"@domain.com/file.html");
Don't use this, it's not going to work:
readfile(ftp_get($conn_id, $local_file, $server_file, FTP_BINARY));
--was--
If you want to read a file from your ftp server use this:
readfile($username . ":" . $password . "@domain.com/file.html");
Don't use this, it's not going to work:
readfile(ftp_get($conn_id, $local_file, $server_file, FTP_BINARY));
http://php.net/manual/en/function.readfile.php