Hey -
I am using the ftp functions to transfer data to a remote ftp server...the thing is that I have a string, and the ftp functions use file handles. So currently I have to write the string to a file then fopen() it and pass it off to the ftp function. But this seems wasteful...any ideas to how to do the transfer from string to file handle directly?
Err...nevermind there is no fopen going on. Brain fart. I guess there can't be any work-around since ftp_put() uses "string local_file".
Ehm.. what's the flip are you doing? Writing strings to a file and opening the file to get an FTP command going?
FTP commands take strings just like any other command. The only filehandle involved is the pointer to the ftp connection itself.