Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 

39 righe
1.1 KiB

  1. <?php
  2. require_once '../st-xm/Common/Mysql.php';
  3. require_once '../st-xm/Common/config_api.inc';
  4. header("Access-Control-Allow-Origin:*");
  5. echo "test get_qunar_auth:";
  6. $test_param = array(
  7. "service" => "zxcv",
  8. "partner" => "wqef",
  9. "return_url" => "wqef",
  10. "out_trade" => "wqef",
  11. "subject" => "wqef",
  12. "payment" => "wqef",
  13. "seller_email" => "wqef",
  14. "total_fee" => "wqef"
  15. );
  16. echo get_qunar_auth($test_param)."<br />";
  17. echo "test send post:";
  18. $post_data = array('user_name'=>"test001",'user_psd'=>"test001");
  19. $result = send_post("http://api.zhizhuchuxing.com/api1.0/get_auth_code.php",$post_data);
  20. echo $result."<br />";
  21. echo "test descryptionByShif:";
  22. echo descryption_by_shif("abcdefg")."<br />";
  23. //echo "test ftp upload:";
  24. //echo upload_file_to_ftp(QUNAR_FTP_SERVER,QUNAR_FTP_PORT,QUNAR_FTP_USER,QUNAR_FTP_PSD,"newfile.txt","/api1.0/uploadfile.txt");
  25. echo "test zip:";
  26. $zip = new ZipArchive();
  27. $filename = "test.zip";
  28. if ($zip->open($filename, ZIPARCHIVE::CREATE)!==TRUE) {
  29. exit("文件打开失败!");
  30. }
  31. $zip->addFile("newfile.txt");
  32. $zip->close();
  33. exit();