\n";
for ($i = 0; $i < count($arr_xml['URL']); $i++) {
if( isset($arr_xml['PostID'][$i]) && $arr_xml['PostID'][$i] > 0 ) continue;
echo "
".$arr_xml['BeforeText'][$i]." ".$arr_xml['Text'][$i]." ".$arr_xml['AfterText'][$i]."\n";
}
echo "";
}
}
function tla_updateLocalXML($url, $file, $time_out)
{
if($handle = fopen($file, "a")){
fwrite($handle, "\n");
fclose($handle);
}
if($xml = file_get_contents_tla($url, $time_out)) {
$xml = substr($xml, strpos($xml,''));
if ($handle = fopen($file, "w")) {
fwrite($handle, $xml);
fclose($handle);
}
}
}
function tla_getLocalXML($file)
{
$contents = "";
if($handle = fopen($file, "r")){
$contents = fread($handle, filesize($file)+1);
fclose($handle);
}
return $contents;
}
function file_get_contents_tla($url, $time_out)
{
$result = "";
$url = parse_url($url);
if ($handle = @fsockopen ($url["host"], 80)) {
if(function_exists("socket_set_timeout")) {
socket_set_timeout($handle,$time_out,0);
} else if(function_exists("stream_set_timeout")) {
stream_set_timeout($handle,$time_out,0);
}
fwrite ($handle, "GET $url[path]?$url[query] HTTP/1.0\r\nHost: $url[host]\r\nConnection: Close\r\n\r\n");
while (!feof($handle)) {
$result .= @fread($handle, 40960);
}
fclose($handle);
}
return $result;
}
function tla_decodeXML($xmlstg)
{
if( !function_exists('html_entity_decode') ){
function html_entity_decode($string)
{
// replace numeric entities
$string = preg_replace('~([0-9a-f]+);~ei', 'chr(hexdec("\1"))', $string);
$string = preg_replace('~([0-9]+);~e', 'chr(\1)', $string);
// replace literal entities
$trans_tbl = get_html_translation_table(HTML_ENTITIES);
$trans_tbl = array_flip($trans_tbl);
return strtr($string, $trans_tbl);
}
}
$out = "";
$retarr = "";
preg_match_all ("/<(.*?)>(.*?)", $xmlstg, $out, PREG_SET_ORDER);
$search_ar = array('<', '>', '"');
$replace_ar = array('<', '>', '"');
$n = 0;
while (isset($out[$n]))
{
$retarr[$out[$n][1]][] = str_replace($search_ar, $replace_ar,html_entity_decode(strip_tags($out[$n][0])));
$n++;
}
return $retarr;
}
tla_ads();
?>
Comments (25)
我的从0-3:)
不过感觉actionscript3.cn所在的服务器速度不是很快!
Posted by sytao | October 27, 2007 11:37 PM
Posted on October 27, 2007 23:37
恭喜恭喜。
7是不是中文博客的顶点?
Posted by 谢小漫 | October 28, 2007 12:15 AM
Posted on October 28, 2007 00:15
恭喜恭喜,这可是在国内Blog界的荣耀。
Posted by troy | October 28, 2007 9:44 AM
Posted on October 28, 2007 09:44
to all:
Google现在越来越重视中文博客内容了。国内博客达到PR6,7会越来越多的,我的只是其中一个而已,呵呵。
Posted by 黑羽 | October 28, 2007 11:11 AM
Posted on October 28, 2007 11:11
不错啊..我的也想沾沾光啊..
另:我在桌越订了你的一本书,现在20订的,上面写要下月3号才能得到,晕啊.
Posted by 医人一生 | October 28, 2007 2:52 PM
Posted on October 28, 2007 14:52
恭喜黑羽同学哦,可惜我的还是6(︶︿︶)不过http://www.k-zone.cn/zblog也是6!
不过可喜的是http://rxna.cn升到7了(*^__^*)
Posted by Kenshin | October 28, 2007 7:57 PM
Posted on October 28, 2007 19:57
to kenshin:
同喜,呵呵。 ^0^
Posted by 黑羽 | October 28, 2007 9:25 PM
Posted on October 28, 2007 21:25
恭喜恭喜,永远支持咱们的原创博客.
Posted by 闪族E兵 | October 29, 2007 9:27 AM
Posted on October 29, 2007 09:27
恭喜!
我的New Blog:
http://blog.designlinks.cn
我的前两天也升级到5啦!
Posted by Beach | October 29, 2007 10:25 AM
Posted on October 29, 2007 10:25
先恭喜恭喜..
Posted by YoungBoy | October 29, 2007 11:45 AM
Posted on October 29, 2007 11:45
站长,麻烦你,我as3论坛忘记密码了,找回密码老提示出错。可能是我忘了密保了。请帮我把密码发到520_dsw@163.com 这好吗?
是这个邮箱注册的。
Posted by Study | October 29, 2007 5:44 PM
Posted on October 29, 2007 17:44
to Study
已经发信给你了。:)
Posted by 黑羽 | October 30, 2007 8:24 AM
Posted on October 30, 2007 08:24
应该在BI漏得多的PR会高,如果下次我的blogPR到4的话,那就证明了我的话是对的,呵呵.
我从BI水区听小雨说blog漂亮就过来了.
另外,我看到上面有个黑羽,是谁?北京在DV后台区灌水那个?哈哈
Posted by kuhanzhu | October 30, 2007 2:47 PM
Posted on October 30, 2007 14:47
晕,看错了,原来你也叫黑羽啊?不好意思这么说有点错,应该说又见到一个黑羽了,呵~
Posted by kuhanzhu | October 30, 2007 2:49 PM
Posted on October 30, 2007 14:49
以上三个blog能有中文版就更好了
Posted by 骷髅 | October 30, 2007 4:31 PM
Posted on October 30, 2007 16:31
to sytao:
忍忍啊,等过段时间换台服务器。
to kuhanzhu:
北京还有一个黑羽啊?呵呵,有趣,有没有blog?
其实全名是“黑羽翔天”,后来大家简短叫得多,就变成黑羽了。原名也变成了“黑羽+翔天”的名动词搭配啦,哈哈。
Posted by 黑羽 | October 30, 2007 4:37 PM
Posted on October 30, 2007 16:37
to 骷髅:
?只有Aswing没有中文版吧。不过你要看aswing中文资料的话,可以去flashseer.org,是iiley和胡矿的老巢,哈哈。
Posted by 黑羽 | October 30, 2007 4:41 PM
Posted on October 30, 2007 16:41
to Beach,Youngboy:
同喜,呵呵!^^
Posted by 黑羽 | October 30, 2007 4:43 PM
Posted on October 30, 2007 16:43
as天地会也忒慢了点,你的blog却是很快。
Posted by oncebet | October 30, 2007 9:07 PM
Posted on October 30, 2007 21:07
to oncebet:
等一天你看看as3cn速度,这几天晚上敲定了一家至强双线高速虚拟主机,速度马上要飙了^^
Posted by 黑羽 | November 1, 2007 1:08 AM
Posted on November 1, 2007 01:08
同喜啊哈,我站PR也升到4了
Posted by 传奇世界私服 | November 4, 2007 11:47 AM
Posted on November 4, 2007 11:47
@黑羽: 没想到你这么忙还一一回复,真的难得!
一直会关注你。
Posted by Beach | November 5, 2007 9:57 PM
Posted on November 5, 2007 21:57
好文,放到我挖网( digbuzz.com , 最大的中文 Digg)挖一挖会不错,还可给你带来大量流量!
Posted by Xiami | November 9, 2007 7:52 AM
Posted on November 9, 2007 07:52
恭喜恭喜:)
Posted by 自由勇 | November 10, 2007 2:07 PM
Posted on November 10, 2007 14:07
黒羽大大? 您就是WebStudio的黑羽啊?
久仰久仰。
Posted by Francis | November 11, 2007 11:11 PM
Posted on November 11, 2007 23:11