![]() ![]() ![]() ![]() |
|||||
|
|||||
樓主 大家加油 ![]()
![]() |
http://ccs.ncl.edu.tw/ccsenews/b/epaper_content_show.asp?EpaperID=65&ContentTypeID=4&SerialNo=2#Detail4_1 參考Google上提供的語法,我設計如下: <html><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>顯示資料</title> </head><body> <? $text=file_get_contents('http://ccs.ncl.edu.tw/ccsenews/b/epaper_content_show.asp?EpaperID=65&ContentTypeID=4&SerialNo=2#Detail4_1'); preg_match('/<span [^>]*class="font_s5"[^>]*>(.*?) <\/span>/si',$text,$match); print($match[0]); ?></body></html> 但是內容是空白的,請問我是否有遺漏若干重點呢?謝謝∼
本篇文章發表於2011-05-25 16:26
|