Uploading files from other websites

im trying to make my website able to download files from other websites with php, but i havent found anything usefull from google yet, i keep getting file upload sites, if you know a tutorial or source code i could mess with, please share the link