I'm going to get the source code for the following page.
http://www.yjc.ir/fa/rss/allnews
i run this code im my 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 As below :
this page when i run in browser is correct. but when by file_get_contents or curl get is incorrect.
please help me. thank you