Created
June 20, 2016 08:53
-
-
Save tutweb/01f90ac409ffe388f1ab37fea92e1fcd to your computer and use it in GitHub Desktop.
Script transfer file antar CPANEL hosting
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Mengambil file dari hosting lama */ | |
/* File juga bisa diambil dari IP tertentu */ | |
$content = file_get_contents("http://DOMAINLAMA.com/FILE_WEB_SAYA.zip"); | |
/* Menyimpan file di hosting baru. pada folder yang diinginkan */ | |
$fp = fopen("/home/u86427JWEB/public_html/FILE_WEB_SAYA.zip", "w"); | |
fwrite($fp, $content); | |
fclose($fp); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment