I have a file getimage.php which it takes in a url and then provides a screenshot of the website: header("Content-type: image/png"); echo($image); which will print out an image if i reference it like this: <img src="getimage.php?url=xxx.xom" /> Everything works fine, but I am thinking of saving this binary image locally. Is there a way to do that?
imagegif($png, './php.gif'); where $png is your image refference for more information see http://www.php.net/gd good luck
or imagepng($imageSource, $imageFile, $compressionRate) http://www.php.net/imagepng http://www.php.net/imagejpeg http://www.php.net/imagegif