Skip to content

Instantly share code, notes, and snippets.

@tutweb
Created June 20, 2016 08:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tutweb/01f90ac409ffe388f1ab37fea92e1fcd to your computer and use it in GitHub Desktop.
Save tutweb/01f90ac409ffe388f1ab37fea92e1fcd to your computer and use it in GitHub Desktop.
Script transfer file antar CPANEL hosting
<?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