Hello,
I am new at php.
I am trynig to download image to my server (OR to my local computer).
The images located at: http://pms.panet.co.il/online/images/music_new/222.jpg
How can download it with php code?
Best regards,
SAM.
Download image to my server with php
Moderator: General Moderators
Re: Download image to my server with php
Code: Select all
$data = file_get_contents('http://pms.panet.co.il/online/images/music_new/222.jpg');
file_put_contents('path/on/my/server/img.jpg', $data);