Rob Gould wrote:
Brilliant!
Now why do all these other scripts I've found make it look so hard??
http://wiki.dreamhost.com/index.php/CURL
curl can handle timeouts much better (file_get_contents will timeout
when the server on the other end says so). it can also tell you if a 404
is returned, and handle basic authentication.
file_get_contents is very simple. if i replace foo.png with a 404 page,
that's what you'll get - and that's what you'll save as your image.
--
Postgresql & php tutorials
http://www.designmagick.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php