这算是file_put_content的高级用法了吧~
1 2 3 4 5 6 7 8 9 10 11
| $params = array( 'access_token' => $access_token ); $options = array( 'http' => array( 'method' => 'POST', 'content' => http_build_query($params) ) ); $context = stream_context_create($options); $r = file_get_contents($url, false, $context);
|