header('Content-type: text/html; charset=utf-8'); /* echo " webip=" . $_REQUEST["webip"]; echo " xItem=" . $_REQUEST["xItem"]; echo " ctNode=" . $_REQUEST["ctNode"]; echo " mp=" . $_REQUEST["mp"]; echo " title=" . $_REQUEST["title"]; echo " webip=".$webip .""; exit; */ echo " webip=".$webip .""; //exit; $webip="http://iod.cier.edu.tw/2015A.htm"; header('Content-type: text/html; charset=utf-8'); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $webip); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); // grab URL and pass it to the browser $context=curl_exec($ch); // close cURL resource, and free up system resources curl_close($ch); //內容處理 $contexttemp=$context; $contexttemp=explode("",$contexttemp); $tda=""; $tdb=""; for($i=3;$i"; $tdtemp=explode("",iconv("BIG5","UTF-8",$contexttemp[$i])); for($j=1;$j About - 大中華經貿研究院 Academy of Great China Economy and Trade (AGDET) 大中華經貿研究院 Home About US Contact Us HKTDC Academy President NTDTV 本院組織 Publications NDCROC MCPRC 中國台商經貿 TASC NPF $picip="中華經貿學院研究報告"; if($_REQUEST["picip"] != "" ){ $picip=''; } echo $picip ?> 中華經貿研究院研究報告 //href="Weekly_report/PDF檔/週報/2015PDF/1844期雙週報.pdf" //str_replace (取代前的字串,取代後字串,要取代的字串); $tempa=explode("|",$tda); $tempb=explode("|",$tdb); for($i=0;$i echo "" . $tempa[$i]. "" . $tempb[$i] . ""; ?> } ?>
大中華經貿研究院