管理员
论坛积分
分
威望 点
贡献值 个
金币 枚
|
$postdata = http_build_query($data);
d3 P- m& a* P2 D1 \7 w8 u/ [7 h' N+ w' K3 y6 _
$opts = array (- l& m0 H' z% H' }, R0 Y9 b
'http' => array (8 }" N! g, _+ [" U7 T3 B) i
'method' => 'POST',4 Q6 V5 }, d; z# p# ]& {" s1 V
'header'=> "Content-type: application/x-www-form-urlencodedrn",
. s# y1 B& P) [0 O( k "Content-Length: " . strlen($data) . "rn",. p9 S# L# j, r0 \/ u
'content' => $postdata1 R1 C0 q7 `9 b7 L. V7 ], d; q
)
8 D r0 R8 z$ C );8 l, |/ W5 g0 a2 T; T( Y
3 C) x U4 {8 c j
$context = stream_context_create($opts);
3 Z' b) L e: X% F, S3 v( {/ v; ^ $html = file_get_contents($url, false, $context);
8 ? r! f& I* u, c3 I& A5 o: Q9 G. |( O9 B
|
|