download - Best way to get a file from remote server and copy to local server using php -
let's there file on remote server can downloaded without restrictions, ie. can put direct link file in browser , downloads file, example http://www.remotesite.com/video.avi prompt browser download file. using php, best way grab file , upload local server without file being downloaded pc @ all, happens phpbb if put url in file upload form? example of code needed appreciated. thanks
just use copy
$source = "http://www.remotesite.com/video.avi"; $dest = "video.avi"; copy($source, $dest);
Comments
Post a Comment