| |||||||||||||||
2008年8月4日 星期一
Advanced Syntax Highlighting
2008年7月25日 星期五
iGO8 Taiwan Map
昨晚用手機試了一下最近很夯的導航軟體 iGO8
發現了一個地圖上的錯誤
台北市仁愛路自復興南路到敦化南路段
應該是四段才對
但是地圖上顯示的是三段
不過巷弄的地址卻是正確的
不知此地圖最近是否會有更新的版本?
2008年7月13日 星期日
在 pda4x 停止報刊的更新
小弟我因為公司工作職務變動的關係
將沒有多餘的時間維護 pda4x 報刊的版面
所以今日(七月13日)將是最後一次更新
也許將來有時間的話
還可繼續為各位服務
也希望各位繼續支持 www.pda4x.com。
2008年7月11日 星期五
About SkyDrive's bandwidth limit
原先號稱沒有流量限制的 SkyDrive
今天平時上傳報刊的空間竟然被操到出現錯誤訊息:
HTTP/1.1 509 Bandwidth Limit Exceeded
我查遍了 Microsoft 網站
沒有看到任何有關 bandwidth 的限制 @@
看來我得要找些備援的空間了。
2008年7月7日 星期一
SCMP php 原始檔公開
共分兩個檔
第一個檔為 scmp.php
用於顯示新聞標題
第二個檔為 scmp_view.php (2009-3-15 更新)
用於顯示新聞內文
Enjoy!
第一個檔為 scmp.php
用於顯示新聞標題
- <?
- $out = "<title>SCMP.com</title>\r\n";
- $out .= "<b><font size=5>SCMP</font></b><br>\r\n";
- preg_match('/<td colspan=\"3\" style="padding-top: 3px; font-size:12px;font-family:Arial\;\" align=\"center\" valign=\"middle\">(.*?)<\/td>/s',$main,$issue);
- $out .="$issue[1]<hr>\r\n";
- $baseurl = 'http://www.scmp.com/rss/';
- for($i=0;$i<5;$i++){
- $url = "$baseurl"."$l[$i].xml";
- $out .= "<p><b><font color=#656565>$tt[$i]</font></b><br>\r\n";
- $content = preg_replace('/<title>(.*?)<\/title>(.*?)<link>(.*?)<\/link>/s',"<li><a href=scmp_view.php?link=$3>$1</a></li>\r\n",$content);
- $out .= $content;
- }
- }
- $out .= "<hr><img src=http://static.flickr.com/60/219160214_e6ed15d559_o.gif>";
- echo $out;
- ?>
第二個檔為 scmp_view.php (2009-3-15 更新)
用於顯示新聞內文
- <?
- ini_set('user_agent', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322)');
- $link = $_GET['link'];
- $content = $match[1];
- $headline = $hl[1];
- $subheadline = $shl[1];
- $art_date = $ad[1];
- $by_line = $bl[1];
- $body = $ab[1];
- $out .= "<title>SCMP.com $headline</title>";
- $out .= "<b><font color=#656565 size=5>$headline</font></b><br>\r\n";
- $out .= "$subheadline<br>\r\n";
- $out .= "$art_date<br>\r\n";
- $out .= "$by_line<hr>\r\n";
- $out .= "$body<hr>\r\n";
- $out .= "<img src=http://static.flickr.com/60/219160214_e6ed15d559_o.gif>";
- $allowed_tags = "<u>,<b>,<li>,<br>,<hr>,<img>,<font>,<p>,<title>";
- echo $out;
- ?>
Enjoy!
訂閱:
文章 (Atom)
