管理员
论坛积分
分
威望 点
贡献值 个
金币 枚
|
$postdata = http_build_query($data);, N4 [, f, [/ D1 l
# V% B0 t3 P+ m+ b3 w
$opts = array (9 B* S. h2 k, u8 X/ ] z7 T
'http' => array (; S f! s" L& W1 k# g
'method' => 'POST',) n/ q" K. |8 j7 F9 W! {
'header'=> "Content-type: application/x-www-form-urlencodedrn",
0 V# I( l' K+ a/ X" R e" r "Content-Length: " . strlen($data) . "rn",
; @1 [% t- A9 i5 i4 C% o5 t 'content' => $postdata" B M. J4 h/ V5 R- B
)
" i2 |0 E Z% ]" a1 m );
9 U/ X# R; }! k6 D) N0 r8 _! M8 K4 ?/ {+ z
$context = stream_context_create($opts);
2 F5 }: q5 `" ]& i $html = file_get_contents($url, false, $context); % F7 D. u, I3 p( X5 [) G. l
+ N0 q" a5 I6 e$ U6 {' ~
|
|