

You can use a URL as a
filename with this function if the fopen wrappers have been enabled.
See fopen() for more details on how to specify
the filename and Appendix N, List of Supported Protocols/Wrappers for a list of supported
URL protocols.
<?php
$im = imagecreatefromjpeg($urltojpegimage);
imagejpeg($im, 'path/to/file.jpg', 100);
?>



