Skip to content

Instantly share code, notes, and snippets.

View eliyaamos's full-sized avatar
😊
Honest is the Best Policy

Eliya A-N eliyaamos

😊
Honest is the Best Policy
View GitHub Profile
@sarathlal-old
sarathlal-old / transfer-copy.php
Created July 29, 2015 10:01
Transfer files from server to server using PHP `copy()` function.
<?php
// Insert this file on server and go to the path from browser.
set_time_limit(0); //Unlimited max execution time
/* Source File URL */
$remote_file_url = 'http://origin-server-url/files.zip';
/* New file name and path for this file */
$local_file = 'files.zip';