Whats the best way to read the content of a file into a variable when connected to a server with the php ftp function? Both ftp_put and ftp_fput stores the content to a file, but I only need it in a variable.
FTP read file content
I think you'll have to download the file, then read the file in, then delete the file.
Or you could just try reading the file on the other server, but you're using FTP so I'm guessing there's some authentication you have to do.