plz give me php script from which i can directly upload files to my server through url(internet)
Plz explain how to make the script work also
Plz explain how to make the script work also
$url = 'http://site.com/image.png'; $content = file_get_contents($url); $filename = end(explode('/',$url)); $fp = fopen('directory/image.png', 'w'); fwrite($fp, $content); fclose($fp);
Comment