Re: FTP info in a variable

From: Date: Fri, 25 Feb 2005 17:07:46 +0000
Subject: Re: FTP info in a variable
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-209459@lists.php.net to get a copy of this message
Steve Buehler wrote: > I have to write a little program that pulls information from a database, > formats it into csv format for importing into excel and ftps it to another > server. I have everything worked out except for the ftping. I have read > through http://us4.php.net/manual/en/ref.ftp.php and I know I > can get the > data from the database, save it to a file and ftp it. Does anybody know > if > I can skip the step of saving it to a file and ftp/stream it directly to a > filename on another server? What you just described is pretty much the entire PURPOSE of http://php.net/manual/en/ref.ftp.php Now that you know that, re-read that, and you'll realize just how easy this is gonna be. :-) PS You may find it easier to go ahead and use a local temporary file, just to use fputcsv() instead of rolling your own. Or not, as rolling your own CSV writer isn't exactly rocket science. -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#209459) next »