Commit b19479c0 by doszhang

dos

parent fc9a0a73
......@@ -36,6 +36,21 @@ class IndexController extends Controller
$this->display();
}
public function http_get_data($url) {
$ch = curl_init ();
curl_setopt ( $ch, CURLOPT_CUSTOMREQUEST, 'GET' );
curl_setopt ( $ch, CURLOPT_SSL_VERIFYPEER, false );
curl_setopt ( $ch, CURLOPT_URL, $url );
ob_start ();
curl_exec ( $ch );
$return_content = ob_get_contents ();
ob_end_clean ();
$return_code = curl_getinfo ( $ch, CURLINFO_HTTP_CODE );
return $return_content;
}
public function getImage(){
$url = $_GET['url'];
// $url = str_replace( 'http://wx.qlogo.cn/', 'http://wx.izhida.cn/', $url);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment