Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Automatically downloading images from any URL location

<?php
//Get the file
$content = file_get_contents("http://example.com/image.jpg");


//Store in the filesystem.
$fp = fopen("/location/to/save/image.jpg", "w");
fwrite($fp, $content);
fclose($fp);
?>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Automatically #downloading #images #URL #location
ADD COMMENT
Topic
Name
6+3 =