// PHP Headlines Grabber by Neil Moomey, www.neilmoomey.com.
// You are free to use this code as you wish.
// Make sure you get permission from any web sites you grab headlines from.
// You may want to write the headlines to a file on your server to speed things up.
// Grab source code from a file or web site
echo "The news interface is down for maintenance.";
// Read each line and add to $myLine
// Extract everything between start and end. You need to include these lines
in the headlines or pick some unique substring in the html to mark the start
and end of the news.
$start="<!---START OF HEADLINES--->";
$end="<!---END OF HEADLINES--->";
$myLine=substr($myLine, $start_position, $length);
// Display HTML
Comments or questions?
PX is running PHP 5.2.17
Thanks to Miranda Productions for hosting and bandwidth.
Use of any code from PX is at your own risk.