Free Webmaster Resources .info
PHP Introduction and Tutorials Javascript  Introduction and Tutorials HTML  Introduction and Tutorials ASP  Introduction and Tutorials Free Internet Access Guide and Directory Webspace  Directory Webhosting  Directory Adult Webhosting  Directory PHP Hosting  Directory ASP Hosting  Directory
à Navigation
» Home
» Php Introduction
» Php Tutorials
» Submit Scripts
 
Subscribe for free!

Join our mailing list today and recieve free updates monthly with web hosting specials!
 
 

 

 

Free Webmaster Resources .info | Free PHP Tutorials


Intergrating News Feeds

In this example we display the mp3 headlines from moreover.com . In this script we display the 5 most recent headlines , moreover usually has 20 headlines per feed so if you wanted more headlines per page , change the following part of the script .

for($i=0 ;$i < 5 ; $i++)

Change the 5 to another number , if you editor has line numbers this is line 74 .

Now we shall display this script on the page using the following code .

<?
include("moreoverfeed.php");
?>

And here is one we made earlier.

link description
Study: P2P not to blame for flagging CD sales" - ZDNet Aug 14 2002 2:51AM ET
Find the perfect MP3 player" - ZDNet Aug 13 2002 7:42PM ET
Study: Downloads to save music biz" - MSNBC Aug 12 2002 8:40PM ET
Casio MP3 Player/Camera" - Popular Mechanics Aug 8 2002 10:18PM ET
iPod too pricey? Check out this budget MP3 player" - ZDNet Aug 8 2002 8:03PM ET

Ok that is software downloads but what about if we wanted a different feed , there is a big choice to offer . Well open up your morev1.php script in your favourite editor and locate the line that goes like the following

if( ! ($fp = fopen("http://p.moreover.com/cgi-local/page?c=MP3%20news&o=rss", "r" )) )

You should find it at the start of the script , now go to our previous page if you skipped it . Now locate the feed you would like , I am going to choose the webmaster tips . Now copy the url for this , in this case it is http://p.moreover.com/cgi-local/page?c=Webmaster%20tips&amp;o=rss , now replace the url in the script , so the script would now read .

if( ! ($fp = fopen("http://p.moreover.com/cgi-local/page?c=Webmaster%20tips&amp;o=rss", "r" )) )

Now here is the webmaster feed

 

link description
Java Development with Ant" - JavaBoutique Aug 14 2002 9:42PM ET
Using Perl With WDDX" - DevShed Aug 14 2002 9:29PM ET
Building Web Forms In Flash" - DevShed Aug 14 2002 9:29PM ET
Leading by Example" - uk.internet.com Aug 14 2002 9:08PM ET
Up in (Virtual) Smoke" - uk.internet.com Aug 14 2002 9:08PM ET
 

Recommended Webhosting Company
What Is Web Hosting Info
Get Info on What Is Web Hosting from 14 search engines in 1.

 

 
Related Websites
 


Free Email
Your source to free email.

Free Casino Downloads
Contains useful free casino downloads.

Free Software Downloads
A complete collection of free software downloads.

Free
Download free stuff from psike.com your free stuff resource.

Free Teen Online Dating
Meet other singles for free online dating.

Coolfreeweb.com
The Free category at coolfreeweb.com

My Directory Listing
A massive directory listing of websites

Website Collation Project
The website collation project contains a huge directory of websites.


 
Top Webhosts
 
 1. What Is Web Hosting Inf
 2. With Web Hosting
 3. Find Web Hosting
 4. Web Host
 5. Free Web Hosting
 
-
- Give us feedback
 
Last updated
Jan 03, 2009
Free Webmaster Resources .info | A resource must for every web master
Untitled Document - Web Hosting
- PHP Hosting
- Free Internet Access