How can download jpg file to my localhost using PHP ,i think to use file_put_contents i started to write some code: <?php file_put_contents('1.jpg','http://i04.fotocdn.net/s3/60/gallery_m/69/2328118331.jpg' ); ?> PHP: i need to save jpg file from http://i04.fotocdn.net/s3/60/gallery_m/69/2328118331.jpg to local folder.
Here You can see the solution of your problem http://stackoverflow.com/questions/9801471/download-image-from-url-using-php-code