Copy file from remote server using php

How to Import files from external server using PHP

This is a very fast way to import/upload some file to your site using php without need to download it to your computer and then upload it to your server  .

This Work with direct links Files .

<?php
$file = file_get_contents("http://ar.wordpress.org/wordpress-3.3-ar.zip");
$save = file_put_contents('wordpress.zip',$file);
?>

Leave a Reply

Your email address will not be published. Required fields are marked *