Re: FTP info in a variable
| From: | Richard Lynch | Date: | Fri, 25 Feb 2005 17:54:15 +0000 |
| Subject: | Re: FTP info in a variable | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-209415@lists.php.net to get a copy of this message | ||
The list has definitely been quite funky last night and today...
Steve Buehler wrote:
> ----original message----
> 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?
You might be able to do something with named pipes and/or exec and
redirect and a little helper PHP script that takes STDIN as an open stream
and passes that to http://php.net/ftp_fput
I think you'd get better performance and a lot less headache just using a
tmp file, though.
--
Like Music?
http://l-i-e.com/artists.htm