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);
?>

(Visited 109 times, 1 visits today)

Leave A Comment

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.