post("http://51yidao.com/t.php","do=dasdfasdf&ad=asdfasdfasdfasdf") ;
function post($url,$postData) {
$c = curl_init(); curl_setopt($c, CURLOPT_POST, true); curl_setopt($c, CURLOPT_RETURNTRANSFER, true); //curl_setopt($c, CURLOPT_HEADER, 0); curl_setopt($c, CURLOPT_URL,$url); curl_setopt($c, CURLOPT_POSTFIELDS, $postData); $result = curl_exec($c); curl_close($c); return $result; }