$content = file_get_contents("http://192.168.0.9/index.php"); $filename = "html/1.html"; $fp = fopen($filename,'w'); fwrite($fp,$content);