GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   How would I go about formatting an xml feed onto a php page? (https://gfy.com/showthread.php?t=571221)

Jace 02-02-2006 04:14 AM

How would I go about formatting an xml feed onto a php page?
 
I want to take a rss feed, like this http://rss.news.yahoo.com/rss/topstories

and have it translate onto a php page....any idea how to do this?

newbreed 02-02-2006 04:17 AM

Dude I can't believe you don't know how to do this.

format c:

Duh.

PS - I have no idea how to do it either so here is a bump.

Jace 02-02-2006 04:21 AM

Quote:

Originally Posted by newbreed
Dude I can't believe you don't know how to do this.

format c:

Duh.

PS - I have no idea how to do it either so here is a bump.

hahahaha, you fag

Jace 02-02-2006 04:26 AM

wonder where chio is, he knows all about this shit

beta-tester 02-02-2006 04:33 AM

good question...I would like to know how to do that, too.

So, here's one bump for you.

who 02-02-2006 04:34 AM

You could ask me politely on ICQ if you want

Jace 02-02-2006 04:55 AM

WOO HOO

got it

go to http://www.rssfeedreader.com/ and sign up (free)

and fill in all the info you want to be there, including the feed url, and it spits out something that looks about liek this:

Code:

<?php
$olderror_reporting =error_reporting(0);
include ("http://www.rssfeedreader.com/rss3/rss.php?url=http%3A%2F%2Fwww.ainews.com%2Fnewsfeed%2FAINewsFP.rss&newpage=1&chead=&atl=&desc=1&owncss=&eleminate=&auth=1&dts=1&width=745&max=15&tlen=0&rnd=1&bt=3&bs=None&nmb=&ntb=&naf=&nst=&nwd=0&nht=0&dlen=0&lstyle=1&lc=&dlttime=0&bg=%23ff96d9&bc=BLUE&spc=&ims=&tc=BLACK&ts=10&tfont=Verdana,+Arial,+Sans-serif&rf=".$HTTP_SERVER_VARS['SERVER_NAME'].$HTTP_SERVER_VARS['PHP_SELF']."&phpout=1");
error_reporting($olderror_reporting);
?>

and there it is, an rss feed pusblished on my php pages

2HousePlague 02-02-2006 04:59 AM

Also...


<?php
include 'http://yoursite.com/rss2html.php?XMLFILE=http://RSSfeedURL&TEMPLATE=http://templateURL&MAXITEMS=20'; ?>


Because you supply the template, it gives a lot of control over how it looks.

For example: http://profitlabinc.com


2hp

Jace 02-02-2006 05:13 AM

Quote:

Originally Posted by 2HousePlague
Also...


<?php
include 'http://yoursite.com/rss2html.php?XMLFILE=http://RSSfeedURL&TEMPLATE=http://templateURL&MAXITEMS=20'; ?>


Because you supply the template, it gives a lot of control over how it looks.

For example: http://profitlabinc.com


2hp

yeah, I saw that, but I didn't see a thing that said I could use more than one news feed per page....I have 10 news feeds that I am putting on one single page

edit: nevermind, I guess since it is an include I can do as many as I would need

oh well, this works for now

2HousePlague 02-02-2006 05:15 AM

Sure you can. You can drop as many of those SSI lines on a page as you like, and RSS2HTML has a concatenate feature that lets you bring multiple feeds into one template.





2hp

2HousePlague 02-02-2006 05:19 AM

More useful RSS display tools and ideas:

http://www.rss-specifications.com/display-rss.htm




2hp

devilspost 02-02-2006 10:10 AM

Check out the tutorial I have to see if you can use it.

http://www.makemoneywithporn.com/rss-feeds.html

beta-tester 02-02-2006 12:14 PM

Thanks for great info guys :)


All times are GMT -7. The time now is 01:55 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123