Revision: 23581
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at February 9, 2010 15:55 by karmacode
Initial Code
$image = drupal_http_request($link); $path_array = explode('/', $link); $filename = end($path_array); $save_to = file_directory_path().'/_images/'.$filename; $temp = '/opt/httpd/htdocs/devphp.caribbeantravelmag.com/files/blog/'.$filename; file_put_contents($temp, file_get_contents($link));
Initial URL
http://stackoverflow.com/questions/724391/save-image-from-php-url-using-php
Initial Description
Initial Title
Fetching and storing remote image
Initial Tags
drupal
Initial Language
PHP