Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Possible? Save a string variable to a remote file via FTP functions

Status
Not open for further replies.

Shrum

Programmer
Joined
May 17, 2002
Messages
122
Location
US
How do I...save a string to a remote file via FTP?
I'm writting a WAN IP extraction & publishing script and am on the cusp of completion. Just one issue remains...

I've retrieved (via cURL) the router page data and stored it into a string variable. I would like to save this string as a remote file over FTP. Only problem is that it looks like all the FTP functions for 'writting' data want an actual filename, not a string of text.

Is there a way to write a string to a file via FTP without having to write the string to a file locally first?

TIA

=============================
Sean Shrum
Shrum Consulting
C.A.T.S.: Consulting: Programming: R/C Soaring:
 
No. But then when you're dealing with something called File Transfer Protocol, this is to be expected.

Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top