<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=tis-620" /> <title>ตัวอย่าง Crawler แบบง่ายๆ</title> </head> <body> <ul> <?php $contents = file_get_contents('http://www.su.ac.th/html_news/news_01.asp'); preg_match_all( '/\<a href\="(\.\.\/html_news\/news_template\.asp\?id\=\d+)"\>([^\<]+)\</', $contents, $all_matches, PREG_SET_ORDER ); foreach ($all_matches as $matches) { echo "<li><a href=\"$matches[1]\">$matches[2]</a></li>"; } ?> </ul> </body> </html>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง