file_get_contents() and Curl
问题 I am using file_get_contents() php function in my laravel 4.2 code to get profile photo after login through facebook . it worked correctly when I use this $arrContextOptions=array( "ssl"=>array( "verify_peer"=> false, "verify_peer_name"=> false, ), ); $content = file_get_contents($myurl, false, stream_context_create($arrContextOptions)); but it makes a security hole in the system as mentioned before in another question for the same issue , if I dont use this security hole method , error blows