Get File via FTP into a var

From: Date: Mon, 23 Oct 2000 08:33:09 +0000
Subject: Get File via FTP into a var
Groups: php.general 
Request: Send a blank email to php-general+get-21743@lists.php.net to get a copy of this message
Hello ! I want to load a file via ftp into a variable. Something like: $string = ftp_getfile(...) I have to log on on the ftp-server with username/password. The problem: Using ftp_get downloads the file to my server (and not into a var), which I want to avoid. Using fopen() and fgets(), I cannot give any username/password to identify myself (or ?). Any ideas ? Martin

« previous php.general (#21743) next »