function httpURL($url, $text, $numeric = FALSE) { $domain = sprintf('http://www.goviewtech.com:%d/bnc_search2_ctrl.ben?', DEBUG ? 3000 : 3000); $text = $numeric ? $text : escape($text); return Assign(gethttp($domain . $url . $text), '0'); }
public static function get_weather() { $data = gethttp('http://m.weather.com.cn/data/101010100.html'); return json_decode($data, 1); }