Re: Get File via FTP into a var

From: Date: Mon, 23 Oct 2000 09:12:25 +0000
Subject: Re: Get File via FTP into a var
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-21751@lists.php.net to get a copy of this message
I found it out: use fopen ("ftp://user:password@domain.com/", "r"); Martin Martin wrote: > > 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 > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#21751) next »