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

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -