管理员
论坛积分
分
威望 点
贡献值 个
金币 枚
|
$postdata = http_build_query($data);
+ `9 @: M0 i/ g
3 Z2 \* r7 M; [8 X5 C% d $opts = array (
) ~7 O! s% `$ b6 Z/ S 'http' => array ( M* u6 L- m( ~! p- ^% A" ` [' L% O
'method' => 'POST',3 B( F/ w3 {- M7 @( m% E/ {
'header'=> "Content-type: application/x-www-form-urlencodedrn",$ c: b: m- @/ t0 [+ E6 c
"Content-Length: " . strlen($data) . "rn",
$ }, O" v2 D: z 'content' => $postdata; @9 X* T6 X' I" e' @ }9 F
)
& }0 o& M) u5 o4 e* E4 C2 Q/ I );+ M `! I7 E2 _2 N
% `3 f. w8 x( G$ C% D4 B- d& [ $context = stream_context_create($opts);& C& P4 C+ Y. R$ P: w
$html = file_get_contents($url, false, $context); - B$ T- I3 f+ @5 V4 f' ^
C ~8 j6 o/ G* f( @
|
|