php - Get inaudible phrases in file_get_contents() -
i'm going source code following page.
http://www.yjc.ir/fa/rss/allnews
i run code im server :
$opts = [ "http" => array( "method" => "get", "header" => "accept-language: en\r\n" . "cookie: foo=bar\r\n" ) ]; $context = stream_context_create($opts); echo $file = file_get_contents('http://www.yjc.ir/fa/rss/allnews', false, $context);
but gets source code below :
this page when run in browser correct. when file_get_contents or curl incorrect.
please me. thank you
wiki
Comments
Post a Comment