$content = file_get_contents('http://www.hosts.co.il');$dir = dirname($_SERVER['SCRIPT_FILENAME']);$fp = fopen($dir.'/filename', 'w');fwrite($fp, $content);fclose($fp);?>