<?php
$imageurl ='http://sri-knowledgecorner.rhcloud.com/images/blogicon.jpeg';
$image=file_get_contents($imageurl);
$imagename = basename($imageurl);//image name
define('DIRECTORY', 'images/'); //save image in images folder
file_put_contents(DIRECTORY.$imagenam, $image);
?>
Friday, 28 February 2014
Save an image from URL using php
Subscribe to:
Post Comments (Atom)




No comments:
Post a Comment