OK, i want to write some code to take an image path and download the file and save it under a filename from a var i set and then allows me to store the full new filename (so including whatever the extension is) so it can be called from my own server. In other-words, its something to allow me to use images from other sites, but without hot-linking and using their bandwidth. I would rather host locally and then link to them.
Any ideas?
-------
Anyone who isn't confused really doesn't understand the situation
http://craigk.org/pictures/
Can you work out the code?