本文整理汇总了PHP中Chinese::OpenFile方法的典型用法代码示例。如果您正苦于以下问题:PHP Chinese::OpenFile方法的具体用法?PHP Chinese::OpenFile怎么用?PHP Chinese::OpenFile使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Chinese
的用法示例。
在下文中一共展示了Chinese::OpenFile方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: substr
$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);