Your Ad Here

 Navigation
Home
Source code
Tutorials
RSS feeds
Articles
Wordpress plugins
Books
Sample Chapters
Software
Downloads
Hosting
manuals
Script directory
Training
Our Links




 Sponsors
 Links
software directory
wwwstores
low cost magazines
 Downloads
dzphp editor
EasyPHP
mysql_phpgenerator
php-studio-trial
phpdesigner_7_2_5
phpMyAdmin-3.4.3.2
/phptriad2-2-1
phpxedit_321
rapidphp 2011
WampServer2.1d-x64
WampServer2.1e-x32
xampp-win32-1.7.4-VC6-installer
xampplite-win32-1.7.3
 Misc
Webmaster Resources
Only PHP
ScriptSearch.com
Scripts.com - Get the best scripts NOW!
AndreaPHP Programming

Valid XHTML 1.0 Transitional


Valid CSS!


ESPN soccer news on your site


ESPN soccer news on your site

<?php
$xmlfile = fopen("http://soccernet.espn.go.com/rss/news", "r");
if(!$xmlfile)
die("cannot open the site");
$readfile = fread($xmlfile ,40000);
$searchfile = eregi("<item>(.*)</item>", $readfile ,$arrayreg);
$chunks = explode("<item>", $arrayreg[0]);
$count = count($chunks);
for($i=1 ; $i<=$count-1 ;$i++)
{
ereg("<title>(.*)</title>",$chunks[$i], $title);
ereg("<link>(.*)</link>",$chunks[$i], $links);
echo "<li>";
echo "<a href ='$links[1]'\>$title[1]</a>";
echo "</li>";
}
?>

And here it is

 
Warning: fopen() [function.fopen]: URL file-access is disabled in the server configuration in /home/beginne/public_html/espnsoccer.php on line 193

Warning: fopen(http://www.newsisfree.com/HPE/xml/feeds/50/1850.xml) [function.fopen]: failed to open stream: no suitable wrapper could be found in /home/beginne/public_html/espnsoccer.php on line 193
cannot open the site