Print '.$data.''; $filepath = tmpfile(); $data = str_replace("\n","",$data); $data = str_replace("
","
",$data); $data = str_replace(" $val ) { $aPOST [] = $key . "=" . urlencode ( $val ); } $strPOST = join ( "&", $aPOST ); } curl_setopt ( $oCurl, CURLOPT_URL, $url ); curl_setopt ( $oCurl, CURLOPT_RETURNTRANSFER, 1 ); curl_setopt ( $oCurl, CURLOPT_POST, true ); curl_setopt ( $oCurl, CURLOPT_POSTFIELDS, $strPOST ); $sContent = curl_exec ( $oCurl ); curl_close ( $oCurl ); return $sContent; } function compress_string($string){ return base64_encode( gzcompress($string, 9)) ; } function uncompress_string($string){ return gzuncompress(base64_decode($string)); }