$string = $chs->ConvertIT(); $string = eregi_replace("\"", "", $string); $string = eregi_replace("href=http", "链接f3b20195d6c7dde8b88119ab9e70934e", $string); $string = eregi_replace("href=/", "链接0ea6a45b84d94ff027c9a26ab3ea895a", $string); $string = eregi_replace("src=http", "图片f3b20195d6c7dde8b88119ab9e70934e", $string); $string = eregi_replace("src=/", "图片0ea6a45b84d94ff027c9a26ab3ea895a", $string); $string = eregi_replace("href=", "href=?tl=http://omega.idv.tw/kdb120/", $string); $string = eregi_replace("src=", "src=http://omega.idv.tw/kdb120/", $string); $string = eregi_replace("链接f3b20195d6c7dde8b88119ab9e70934e", "href=http", $string); $string = eregi_replace("链接0ea6a45b84d94ff027c9a26ab3ea895a", "href=" . substr($tl, 0, -1) . "/", $string); $string = eregi_replace("图片f3b20195d6c7dde8b88119ab9e70934e", "src=http", $string); $string = eregi_replace("图片0ea6a45b84d94ff027c9a26ab3ea895a", "src=" . substr($tl, 0, -1) . "/", $string); echo $string; echo "GB->Big5 from URL html<br>"; $chs = new Chinese("GB2312", "BIG5", "", $codeTablesDir); $chs->OpenFile("http://mail.21cn.com/jffs/help.html", true); $string = $chs->ConvertIT(); //eregi("href[[:space:]]*=[[:space:]]*(.*)[[:space:]]", $ret, $ctemp); //echo $ctemp; //$string = "<a href=www.testing.com>testing</a>"; //echo $string; $string = eregi_replace("href=\"", "href=\"http://mail.21cn.com/jffs/", $string); // $string = eregi_replace("member.php?action=reg", "http://omega.idv.tw/kdb120/member.php?action=reg", $string); //echo eregi_replace("href[[:space:]]*=[[:space:]]*(^[^http]+)([^>]+)>", "\\2", $string); //echo eregi("<a[[:space:]]+href[[:space:]]*=[[:space:]]*([^>]+)>([[:alnum:]]+)<[[:space:]]*/a[[:space:]]*>", $string, eregi_replace("\\1", "", "\\1")); //if (substr($regexp[1], 0, 4) != "http") { // $string = eregi_replace($regexp[1], "http://omega.idv.tw/kdb120/".$regexp[1], $string); //} //print_r ($regexp); //$string = "<a href=\"www.testing.com\">testing</a>"; //$string = eregi_replace("member.php", "http://omega.idv.tw/kdb120/member.php", $string);