How do I copy a file from an external server with PHP? -
i have re-create jpg external server, such facebook, server.
what best way so? though maybe fread
/fopen
etc. don't know if best way.
$url = 'http://facebook.com/image.jpg'; $img = '/my/folder/image.jpg'; file_put_contents($img, file_get_contents($url));
php copy
No comments:
Post a Comment