View Single Post
Old 05-31-2008, 01:28 PM  
xenilk
Confirmed User
 
xenilk's Avatar
 
Join Date: Jan 2006
Location: Canuck land!
Posts: 921
Code:
function getContent($url)
{
	$ch = curl_init ($url);
	curl_setopt ($ch, CURLOPT_HEADER, 0);
	curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
	curl_setopt($ch, CURLOPT_TIMEOUT, 5);

	$result = curl_exec($ch);

	curl_close ($ch);
	return $result;
}
call getContent('http://www.website.com/rss.php'), it'll give you the page's rss feed..

from there you can either load it under SimpleXML or parse it manually (which could be painful)

Need more help or need something done? Feel free to contact me at xenilk(at)gmail.com
xenilk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook