php copy url

Solutions on MaxInterview for php copy url by the best coders in the world

showing results for - "php copy url"
Oskar
01 Jan 2019
1$file = 'http://3.bp.blogspot.com/-AGI4aY2SFaE/Tg8yoG3ijTI/AAAAAAAAA5k/nJB-mDhc8Ds/s400/rizal001.jpg';
2$newfile = '/img/submitted/yoyo.jpg';
3
4if ( copy($file, $newfile) ) {
5    echo "Copy success!";
6}else{
7echo "Copy failed.";
8}
9