管理员
论坛积分
分
威望 点
贡献值 个
金币 枚
|
$postdata = http_build_query($data);% D: J9 ^0 p7 m8 b- l l/ }
$ a; C* k7 O+ H/ ?- f $opts = array (3 Q/ O5 u( T, Q: |
'http' => array (
3 ~7 C* X7 c3 m6 G& H 'method' => 'POST',- H5 W$ ]8 }3 m& ^
'header'=> "Content-type: application/x-www-form-urlencodedrn",& [, U% R) r# e
"Content-Length: " . strlen($data) . "rn",0 q4 I8 G0 I! H* m+ `6 c6 c
'content' => $postdata3 U. z! ]2 Z. N5 y( Q% i
)
, m) X$ l9 j& G: C, c );) Z6 L% ^. X' }2 W K
: ^& d) A R6 z; x" x
$context = stream_context_create($opts);
; {) h& H* j6 `, y! j% z$ s' G $html = file_get_contents($url, false, $context); + j$ S" s; j# R$ X5 Q
- `: K# D8 L. ], v. y. ^
|
|