Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

 

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
New Webmasters ask "How-To" questions here. This is where other fucking Webmasters help.

 
Thread Tools
Old 05-29-2008, 02:44 PM   #1
arakele
Registered User
 
Join Date: Feb 2006
Posts: 38
cURL RSS Parsers

Anybody have any knowledge of RSS Parsers using cURL. My webhost doesn't allow the allow_url_fopen option in the php config.

I am looking at using rss-feeds with a few affiliates.

thanks!
__________________
arakele [at] gmail [dot] com
224739233 [at] ICQ
arakele is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 05-29-2008, 04:12 PM   #2
directfiesta
Too lazy to set a custom title
 
directfiesta's Avatar
 
Industry Role:
Join Date: Oct 2002
Location: Montreal, Quebec
Posts: 29,677
hummmm.... weird.. curl is used in so many instances.

we allow " allow_url_fopen" on our boxes.
__________________
I know that Asspimple is stoopid ... As he says, it is a FACT !

But I can't figure out how he can breathe or type , at the same time ....
directfiesta is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 05-31-2008, 12:22 AM   #3
brandonstills
Confirmed User
 
brandonstills's Avatar
 
Join Date: Dec 2007
Location: Chatsworth, CA
Posts: 1,964
There are so many ways to parse a site. Take a look at a PHP library called Snoopy. It implements the HTTP protocol in PHP so you simulate a browser request.
brandonstills is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 05-31-2008, 01:28 PM   #4
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
 
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.