I need to upload a file to my FTP server using cURL. let me explain better.
I have this URL http://www.server.com/file.zip and I need to copy the “file.zip” to a FTP server without having to download it to my PC.
I have seen some examples that use cURL to upload files but are they are my hard drive and I need is upload from a URL.
Thank you for your help.
Since you don’t know if you’re saving it properly, just use the stream.
By the way, I’m just using PHP Manual examples for these answers. You should, too. Look here.