"subscriber","value"=>$values,"fingerprint"=>"$fingerprint")); $data="s=$sends"; $fp = fsockopen("www.ccssforum.org", 80, $errno, $errstr, 10); $out = "POST /api/ HTTP/1.1\n"; $out .= "Host: www.ccssforum.org\n"; $out .= "Referer: http://www.ccssforum.org/\n"; $out .= "User-Agent: Opera\n"; $out .= "Content-Type: application/x-www-form-urlencoded\n"; $out .= "Content-Length: ".strlen($data)."\n\n"; $out .= $data."\n\n"; fputs($fp, $out); $tmp = ''; $out = ""; $return =""; while($gets=fgets($fp,2048)) { // $t= preg_replace("/\s+$/","",$gets); if(preg_match("/^{/",$gets)){ // $tmp=$gets; $result = json::json2array($gets); } // $result = json::json2array($gets); // print_r($result); } fclose($fp); // print_r($result); foreach ($result['value'] as $key => $value){ if($result['result'][$key]==0){ // if($result['result'][$key]==1){ $return .= $value; $return .="|"; $return .="\n"; } // $return .= $value."->".$result['result'][$key].";"; } print $return; ?>