PHP code to copy a remote file to a server

Sometime you need to copy a remote file to your web server but you dont have ssh access or dont want to download to you computer and then upload to your server. here is one method. create a php file with this code:  (move_file.php) if(!copy("http://server1.com/file1.zip", "localfile1.zip")) { echo("failed to copy file"); } ;   The code will copy file1.zip from server1.com … [Read more...]