Call us Toll-Free:
1-800-218-1525
Live ChatEmail us

 Sponsors

CNN SI Sports Headlines

Code Wizard, 12-30-2006

This small PHP script grabs the CNN SI Sports Headlines off CNN.com

<?
/* CNN SI Sports Headlines
Brenden Bixler {bixler99@home.com} */

$site = "http://www.cnn.com/index.html";
$open = fopen($site, "r");
$search = fread($open, 50000);
fclose($open);
$search = ereg("<!-- Sports News -->(.*)<!-- Business News -->", $search, $content);
$content[1] = str_replace("href="", "href="http://www.cnn.com/", $content[1]);
echo ("<SPAN valign="middle"><b>Top Sports News from: </b></SPAN><IMG SRC="http://a388.g.akamai.net/f/388/21/15m/www.cnn.com/images/hub2000/main/si.logo.gif" alt="CNNsi.com" width="72" height="22" border="0" align="middle"></a>");
echo $content[1];
?>
Enjoyed this post?

Subscribe Now to receive new posts via Email as soon as they come out.

 Comments
Post your comments












Note: No link spamming! If your message contains link/s, it will NOT be published on the site before manually approved by one of our moderators.



About Us  |  Contact us  |  Privacy Policy  |  Terms & Conditions