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 :

source code screenshot

this page when run in browser correct. when file_get_contents or curl incorrect.

please me. thank you





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -