It seems the simple echo $image doesn’t do the trick for this one:
<?php
include_once 'class.get.image.php';
// initialize the class
$image = new GetImage;
// just an image URL
$image->source = $_POST["url"];
$image->save_to = 'images/'; // with trailing slash at the end
$get = $image->download('curl'); // using GD
if($get)
{
echo 'The image has been saved.';
echo $image;
}
?>
Here’s class.get.image.php You see i’ve inserted echo $image; hoping it would display at least the filename of the image but it doesn’t.
that will do the trick