diff --git a/helper/webpagetool.php b/helper/webpagetool.php index e054811..8957910 100644 --- a/helper/webpagetool.php +++ b/helper/webpagetool.php @@ -156,6 +156,20 @@ if(!function_exists("get_web_sock")) { if(!function_exists("get_web_wget")) { function get_web_wget($url, $method="get", $data=array(), $proxy="", $ua="", $ct_out=45, $t_out=45) { + $content = ""; + + $filename = make_random_id(32); + $filepath = write_storage_file("", array( + "filename" => $filename, + "mode" => "fake" + )); + + $cmd = sprintf("wget '%s' -O %s", $url, $filepath); + shell_exec($cmd); + + $content = read_storage_file($filename); + + return $content; } }