PHP - getting an image and saving it locally

Soldato
Joined
4 Jul 2004
Posts
2,647
Location
aberdeen
Hello
First this isn't just to go about nicking peoples work. It is to be used (privatly) with product images, that are (probably?) taken by the manufacturers and given out with press releases

Anyway, I want the user [me] to enter a url for an image (eg http://www.example.com/pic.jpg), in a field. Then on the submit page, it gets that image, gives it a unique name, saves it in a local folder (http://www.....com/imgs/), then stores the file name to a database

I can do all the DB stuff, its just getting the image and saving it that i am not sure about

Hope this makes sense

Any ideas/links?

Thanks
 
Back
Top Bottom