PHP News   Codeschnipsel   PHP-Scripts   Impressum   Datenschutz


Codeschnipsel

News von Heise
Dieses Script macht es möglich, die News von heise.de auch in deine Homepage einzubinden.
Hier gibt es eine Vorschau: Demo

Autor: Fabian Karg E-Mailadresse des Autors Gästebuch: kostenlos und werbefrei
<?php
   
print "<span class='text2'><table align='center' border='0' >";

   
$fcontents join (''file ('http://www.heise.de/newsticker/heise.rdf'));

   
$fcontents str_replace ("</item>"""$fcontents);
   
$fcontents str_replace ("</link>"""$fcontents);

   
$splices explode ("<item>"$fcontents);

   for (
$i 1$i count($splices); $i++){
      
$link explode("<link>",$splices[$i]);
      
$link[1] = strip_tags($link[1]);
      
$headline str_replace ("<title>""<a href='" trim($link[1]) . "' target='_blank' class='heiseheadline'>"$splices[$i]);
      
$headline str_replace ("</title>""</a>"$headline);
      
$headline explode ("<link>"$headline);
      
$headline $headline[0];
      print 
"<tr><td> $headline</td></tr>";
   }
   print 
"</table></span>";
?>



Tipps:


Copyright © 2008 phpfriends.net. Alle Rechte vorbehalten.

Notice: Undefined variable: HTTP_SERVER_VARS in /www/htdocs/phpfrien/Counter/counter.php on line 37

Notice: Undefined variable: HTTP_SERVER_VARS in /www/htdocs/phpfrien/Counter/include/config.inc.php on line 64

Notice: Undefined variable: HTTP_SERVER_VARS in /www/htdocs/phpfrien/Counter/include/config.inc.php on line 66

Notice: Undefined variable: HTTP_SERVER_VARS in /www/htdocs/phpfrien/Counter/include/config.inc.php on line 69

Notice: Undefined variable: HTTP_SERVER_VARS in /www/htdocs/phpfrien/Counter/include/config.inc.php on line 71

Deprecated: Assigning the return value of new by reference is deprecated in /www/htdocs/phpfrien/Counter/include/functions_counter.inc.php on line 703