How?
I think I've done this with .PDFs at one time in the past, but I lost the code, and now nothing is turning up on the web about how to go to a URL, get a .gif and copy the .gif file into my directory.
Thanks for any help.
How?
I think I've done this with .PDFs at one time in the past, but I lost the code, and now nothing is turning up on the web about how to go to a URL, get a .gif and copy the .gif file into my directory.
Thanks for any help.
$gif = file_get_contents("http://path.to/gif/pic.gif");
file_put_contents("path/on/server",$gif);
You need to have fopen wrappers enabled for this to work.
if your php configuration allow you to fopen url (allow_url_fopen directive in php.ini)
file_put_contents ($filename, file_get_contents ($url));