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! Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/183598-upload-file-froma-url/#findComment-969096 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.