"zxcv", "partner" => "wqef", "return_url" => "wqef", "out_trade" => "wqef", "subject" => "wqef", "payment" => "wqef", "seller_email" => "wqef", "total_fee" => "wqef" ); echo get_qunar_auth($test_param)."
"; echo "test send post:"; $post_data = array('user_name'=>"test001",'user_psd'=>"test001"); $result = send_post("http://api.zhizhuchuxing.com/api1.0/get_auth_code.php",$post_data); echo $result."
"; echo "test descryptionByShif:"; echo descryption_by_shif("abcdefg")."
"; //echo "test ftp upload:"; //echo upload_file_to_ftp(QUNAR_FTP_SERVER,QUNAR_FTP_PORT,QUNAR_FTP_USER,QUNAR_FTP_PSD,"newfile.txt","/api1.0/uploadfile.txt"); echo "test zip:"; $zip = new ZipArchive(); $filename = "test.zip"; if ($zip->open($filename, ZIPARCHIVE::CREATE)!==TRUE) { exit("文件打开失败!"); } $zip->addFile("newfile.txt"); $zip->close(); exit();