wordpress site transfer easy way.

1.create file abc.php
2.<?php shell_exec('wget   http://portfolio.nexusfleck.com/bettertea/wp-content.zip ');
This script run.
3.<?php

$unzip = new ZipArchive;
$out = $unzip->open('wp-content.zip');
if ($out === TRUE) {
  $unzip->extractTo(getcwd());
  $unzip->close();
  echo 'File unzipped';
} else {
  echo 'Something went wrong?';
}

Comments