[ ] - [ ] - [ ]
: cURL utf-8
olya-kowka
, !

. cURL . html utf-8 .

}sFg*C[T,%Rʢ+~%qlOl^K dM_TLYI2ݩ[[{ &E8K x,Gd(1 8}9}qK7.盗?Fn~tՋ$4~ (H6g̹ͤ(9(TdRJUn[nћ!"9(G.VE^\ if*1ONSSSOh~71E'\nFPj)%ѧe_!sw£FeN QA,#d\l

windows-1251, .. , windows . . , ?

cURL

curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_FAILONERROR, 1);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_REFERER, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_AUTOREFERER, 1);

$options = array("Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*",
"Accept-Language: ru",
"Accept-Encoding: gzip, deflate",
"User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727)",
"Host: ".$host,
"Connection: Keep-Alive",
"Cache-Control: no-cache");

curl_setopt($ch, CURLOPT_HTTPHEADER, $options);





1 , 18 , 8 (21.12.2009 - 16:29) ():
: :
$source['page'] = curl_exec ($ch);
$source['page'] = iconv('cp1251','UTF8',$source['page']);

57 , 40 (21.12.2009 - 17:27) olya-kowka ():


, iconv . , "Accept-Encoding: gzip, deflate". ...

2 , 19 , 24 (21.12.2009 - 19:46) VolCh ():
smile.gif , ( ) .

curl_setopt($curl, CURLOPT_ENCODING, 'gzip, deflate'); 


_____________
... !!
:

  |  
.
Invision Power Board © 2001-2024 Invision Power Services, Inc.