source data textary[" . $i . "]=" .$textary[$i] . "
\r\n"; //取出圖網址 //echo "取出圖網址
"; $temp='./images/default.jpg'; $testsp=strpos($textary[$i],'homepage-slider-entry-tool'); if($testsp < 1){ $sp=strpos($textary[$i],'src='); if ($sp > 0 ){ $texttemp=substr($textary[$i],$sp+4,strlen($textary[$i])-$sp); $ep=strpos($texttemp,'"/>'); //$temp= str_replace('src="','src="http://research.hktdc.com/',substr($texttemp,0,$ep+5)); $temp= 'http://research.hktdc.com/'.substr($texttemp,2,$ep-2); } } $pictemp=$pictemp."|".$temp; //echo "pic ip =" . $temp . "
"; //echo "================================================
\r\n"; } //echo "webiptemp=" . $webiptemp ."
"; //取出文章網址 $texttemp=$text; $textary=explode('class="homepage-slider-list-item"',$texttemp); $webiptemp= ""; $titletemp=""; $articletemp=""; for($i=1;$i"; $articletemp=$articletemp."|".substr($texttemp,0,$ep); //取出抬頭 $sp=strpos($textary[$i],'title">'); $texttemp=substr($textary[$i],$sp,strlen($textary[$i])-$sp); $ep=strpos($texttemp,""); //echo "title->" . $i ."|" . substr($texttemp,7,$ep)."
"; $titletemp=$titletemp . "|" . substr($texttemp,7,$ep); } //echo "articletemp=" . $articleemp."
"; //exit; //echo "articletemp=" . $articletemp ."
"; $webipary=explode("|",$articletemp); $picary=explode("|",$pictemp); $titleary=explode("|",$titletemp);; //exit; ?> 大中華經貿研究院 Academy of Great China Economy and Trade (AGCET)
'); $ep=strpos($texttemp,'',$sp); $texttemp=substr($texttemp,$sp,$ep-$sp); echo $texttemp ?>

Academy of Great China Economy and Trade (AGCET)

Academy of Great China Economy and Trade (AGCET) is a non-profit international organization is Asia branch of International Human and Privacy Rights Protection Association (IHPRPA).

'; //去頭 $sp=strpos($texttemp,$spstr); $ep=strpos($texttemp,'
',$sp); $texttemp=substr($texttemp,$sp,$ep-$sp); //$sp=strpos($texttemp,"

"); //$ep=strpos($texttemp,'

',$sp); $texttemp=explode('

',$texttemp);; for($i=0;$i" . $texttemp[$i] . "
"; $sp=strpos($texttemp[$i],"http"); $ep=strpos($texttemp[$i],'">',$sp); $mwebip=substr($texttemp[$i],$sp,$ep-$sp); //echo "ip=" . $mwebip ." | "; $sp=$ep+2; $ep=strpos($texttemp[$i],'' . $mtitle . ''; $texttemp[$i]=$texttemp[$i]. '
'; //echo "--sp=$sp---------ep=$ep------------
"; echo $texttemp[$i]; //echo "----------------------
"; } //exit; ?>
'; //去頭 $sp=strpos($texttemp,$spstr); $ep=strpos($texttemp,'
',$sp); $texttemp=substr($texttemp,$sp,$ep-$sp); //$sp=strpos($texttemp,"

"); //$ep=strpos($texttemp,'

',$sp); $texttemp=explode('

',$texttemp);; for($i=0;$i" . $texttemp[$i] . "
"; $sp=strpos($texttemp[$i],"http"); $ep=strpos($texttemp[$i],'">',$sp); $mwebip=substr($texttemp[$i],$sp,$ep-$sp); //echo "ip=" . $mwebip ." | "; $sp=$ep+2; $ep=strpos($texttemp[$i],'' . $mtitle . ''; $texttemp[$i]=$texttemp[$i]. '
'; //echo "--sp=$sp---------ep=$ep------------
"; echo $texttemp[$i]; //echo "----------------------
"; } //exit; ?>
  • Img

    香港經貿

    香港經貿
  • '; //去頭 $sp=strpos($texttemp,$spstr); $ep=strpos($texttemp,'
    ',$sp); $texttemp=substr($texttemp,$sp,$ep-$sp); //$sp=strpos($texttemp,"

    "); //$ep=strpos($texttemp,'

    ',$sp); $texttemp=explode('

    ',$texttemp);; for($i=0;$i" . $texttemp[$i] . "
    "; $sp=strpos($texttemp[$i],"http"); $ep=strpos($texttemp[$i],'">',$sp); $mwebip=substr($texttemp[$i],$sp,$ep-$sp); //echo "ip=" . $mwebip ." | "; $sp=$ep+2; $ep=strpos($texttemp[$i],'' . $mtitle . ''; $texttemp[$i]=$texttemp[$i]. '
    '; //echo "--sp=$sp---------ep=$ep------------
    "; echo $texttemp[$i]; //echo "----------------------
    "; } //exit; ?>
  • Img

    成熟市場

    成熟市場
  • '; //去頭 $sp=strpos($texttemp,$spstr); $ep=strpos($texttemp,'
    ',$sp); $texttemp=substr($texttemp,$sp,$ep-$sp); //$sp=strpos($texttemp,"

    "); //$ep=strpos($texttemp,'

    ',$sp); $texttemp=explode('

    ',$texttemp);; for($i=0;$i" . $texttemp[$i] . "
    "; $sp=strpos($texttemp[$i],"http"); $ep=strpos($texttemp[$i],'">',$sp); $mwebip=substr($texttemp[$i],$sp,$ep-$sp); //echo "ip=" . $mwebip ." | "; $sp=$ep+2; $ep=strpos($texttemp[$i],'' . $mtitle . ''; $texttemp[$i]=$texttemp[$i]. '
    '; //echo "--sp=$sp---------ep=$ep------------
    "; echo $texttemp[$i]; //echo "----------------------
    "; } //exit; ?>
  • Img

    新興市場

    新興市場
  • '; //去頭 $sp=strpos($texttemp,$spstr); $ep=strpos($texttemp,'
    ',$sp); $texttemp=substr($texttemp,$sp,$ep-$sp); //$sp=strpos($texttemp,"

    "); //$ep=strpos($texttemp,'

    ',$sp); $texttemp=explode('

    ',$texttemp);; for($i=0;$i" . $texttemp[$i] . "
    "; $sp=strpos($texttemp[$i],"http"); $ep=strpos($texttemp[$i],'">',$sp); $mwebip=substr($texttemp[$i],$sp,$ep-$sp); //echo "ip=" . $mwebip ." | "; $sp=$ep+2; $ep=strpos($texttemp[$i],'' . $mtitle . ''; $texttemp[$i]=$texttemp[$i]. '
    '; //echo "--sp=$sp---------ep=$ep------------
    "; echo $texttemp[$i]; //echo "----------------------
    "; } //exit; ?>