ข้อความเหล่านี้สำคัญ มันคือ คีย์เวิร์ดสำคัญ
http-equiv=”refresh” content=’180; url=ชื่อ.php’ เป็นคำสั่ง รีเฟรชหน้าเว็บ
เหมาะสำหรับ encoding แล้วเน่า ลองวิธีนี้ดูครับ
วิธีดึงหน้าเว็บเป็นซอร์ดโค๊ดหน้าเว็บนั้นออกมา
$xml = new SimpleXMLElement(‘http://www.thairath.co.th/rss/news.xml’,NULL,TRUE);
$rss_url = “http://www.thairath.co.th/rss/news.xml”;
$cURL = curl_init($rss_url);
curl_setopt($cURL, CURLOPT_URL, “http://www.thairath.co.th/rss/news.xml”);
เกี่ยวกับ Proxy
curl_setopt($cURL, CURLOPT_HEADER, 1);
curl_setopt($cURL, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($cURL, CURLOPT_POST, 1);
curl_setopt($cURL, CURLOPT_POSTFIELDS, $strParameters);
curl_setopt($cURL, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($cURL, CURLOPT_PROXY, “proxy2.xx.xx.xx:port”);
curl_setopt($cURL, CURLOPT_PROXYUSERPWD, “username:password”);