$url = "http://isanghamak.appspot.com/"; $curl = curl_init(); curl_setopt ($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); $result = curl_exec ($curl); curl_close ($curl); echo $result;
Showing posts with label PHP. Show all posts
Showing posts with label PHP. Show all posts
Thursday, October 17, 2013
Curl
Check Browser Code
$u_agent = $_SERVER['HTTP_USER_AGENT']; if(preg_match('/MSIE/i',$u_agent)) { //ie }else if(preg_match('/Chrome/i',$u_agent)){ //chrome }else if(preg_match('/webkit/i',$u_agent)){ //safari }else if(preg_match('/Firefox/i',$u_agent)){ //firefox }
Subscribe to:
Posts (Atom)