View Single Post
Old Nov 6th, 2007, 9:50 PM   #1
Jessehk
The Oblivious One
 
Jessehk's Avatar
 
Join Date: May 2005
Location: Ontario, Canada
Posts: 641
Rep Power: 4 Jessehk is on a distinguished road
Downloading an external image and saving it to disk

Hi all. I'm a maintainer for my school's website and recently, a teacher had put forward a request. He wants the website to download an image every hour and save it to disk.

This might be a stupid question, but is this sort of thing possible in PHP? I've attempted to put together something quickly using the copy() function and the Google logo, but I'm getting permission errors when I attempt to write the image to disk.

Am I approaching this the correct way, or is there something that I'm missing? I'm not looking for a specific solution, but some general direction of how to proceed would be really appreciated.
__________________
Dr. Zoidberg: [ecstatic] I'm going to a movie... with FRIENDS!
Jessehk is offline   Reply With Quote