title: Save files using php from a URL
body: <p>So I have an URL, let's say <code>http://mysite-1.com/img.jpg</code> and I want to acces that URL with PHP from another site and save the file, I don't know from where to start, can you guys give me some tips? I'm using CodeIgniter and I want to use this with the <code>upload()</code> method, but any other method will also be appreciated.</p>