$param_value ) { $url_param[] = "{$param_key}={$param_value}"; } $url_txt = implode( "&", $url_param); $url_txt .= QUNAR_SECRET; return md5($url_txt); } function send_post($url, $post_data) { $postdata = http_build_query($post_data); $options = array( 'http' => array( 'method' => 'POST', 'header' => 'Content-type:application/x-www-form-urlencoded', 'content' => $postdata, 'timeout' => 15 * 60 // 超时时间(单位:s) ) ); $context = stream_context_create($options); $result = file_get_contents($url, false, $context); return $result; } function descryption_by_shif( $org_string ) { $new_string = ''; for($i=0;$iopen($zip_file, ZIPARCHIVE::CREATE)!==TRUE) { return false; } $zip->addFile($source_file); $zip->close(); return true; }