treeleaf20 Posted December 1, 2009 Share Posted December 1, 2009 All, Is it possible to do a file upload from another site? So for something quick like this: $source = $_FILES['fupload']['tmp_name']; $target = $path_to_image_directory . $filename; move_uploaded_file($source, $target); Is there anyway to make the $source something like: $source = "http://www.site.com/pictures?id=12345"; $target = $path_to_image_directory . $filename; move_uploaded_file($source, $target); Any ideas? Thanks! Link to comment https://forums.phpfreaks.com/topic/183598-upload-file-froma-url/ Share on other sites More sharing options...
JustLikeIcarus Posted December 1, 2009 Share Posted December 1, 2009 Per the php manual: As long as allow_url_fopen is enabled in php.ini, you can use HTTP and FTP URLs with most of the functions that take a filename as a parameter. Link to comment https://forums.phpfreaks.com/topic/183598-upload-file-froma-url/#findComment-969096 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.