Hi all,
The below is the PHP script to get image from url and save into your location machine or into own server
The below is the PHP script to get image from url and save into your location machine or into own server
$imageurl ='http://i.ndtvimg.com/i/2015-08/mahesh-babu_630x450_81440064359.jpg';
$content = file_get_contents($imageurl);
if(file_put_contents('imagefolder/randomImageName.jpg', $content)){
echo "File uploaded through URL";
}else{
echo "File not uploaded...";
}
0 comments:
Post a Comment
Click to see the code!
To insert emoticon you must added at least one space before the code.