if(isset($_GET['p'])){ $p=$_GET['p']; }else{ toindex(); } include "f.php"; //丟得關鍵字資料 $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://www.sxs.tw/xml/show_product_data.php"); curl_setopt($ch, CURLOPT_POST, true); // 啟用POST curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); //可以使用 result curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query( array("product_id"=>$p,"ck_code"=>$cd_key))); $product = urldecode(curl_exec($ch)); $product_list=explode("p7x7kp",$product); curl_close($ch); //丟得關鍵字資料 if($product_list[4]==""){ toindex(); } if(count(explode(".jpg",$product_list[6]))>=2){ $img_link="https://www.sxs.tw/upload/goods/".$product_list[6]; }else{ $img_link="https://store.itoy.com.tw/upload/goods/".$product_list[6]; } $o_money=ceil($product_list[3]*1.60); include "page_money_show.php"; $des_none=strip_tags($product_list[1]); $des_none=str_replace ("\r","",$des_none); $des_none=str_replace ("\n","",$des_none); $des_none=str_replace (" ","",$des_none); ?>