Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save encoderit-arman/eebd3856a1a50c4a8cd01c05e727ea40 to your computer and use it in GitHub Desktop.

Select an option

Save encoderit-arman/eebd3856a1a50c4a8cd01c05e727ea40 to your computer and use it in GitHub Desktop.
<?php
$file = 'https://encoderit.host/littledream/littledream.zip';
$newfile = $_SERVER['DOCUMENT_ROOT'] . '/en-site/littledream-en.zip';
// echo $newfile;
if ( copy($file, $newfile) ) {
echo "Copy success!";
}else{
echo "Copy failed.";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment