rss script

Gestart doorKrm0 reacties36 weergaven

1 berichten · pagina 1 van 1

Krm

Lid · Topicstarter

Berichten
6.235
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
wie kan een rss script maken voor me die alle feeds weergeeft of dat ik elf kan kiezen hoeveel feeds ik wi lzien ik heb nu dit

[COLOR= #0000BB]<? 

$feed[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/file_get_contents"]file_get_contents[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"http://www.metronieuws.nl/index.php?actie=rss&type=alles"[/COLOR][COLOR= #007700]);[/COLOR] 
[COLOR= #0000BB]$feed[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/explode"]explode[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"<description>"[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$feed[/COLOR][COLOR= #007700]);[/COLOR] 
[COLOR= #0000BB]$feed[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/explode"]explode[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"</description>"[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$feed[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]2[/COLOR][COLOR= #007700]]);[/COLOR] 
[COLOR= #0000BB]$feed[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$feed[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700]];[/COLOR] 

[COLOR= #0000BB]$feed[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/wordwrap"]wordwrap[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$feed[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]45[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"|blaat|"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700]);[/COLOR] 
[COLOR= #0000BB]$feed[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/explode"]explode[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"|blaat|"[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$feed[/COLOR][COLOR= #007700]);[/COLOR] 
[URL="http://www.php.net/foreach"]foreach[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$feed[/COLOR] [COLOR= #007700]as[/COLOR] [COLOR= #0000BB]$regel[/COLOR][COLOR= #007700]) {[/COLOR] 
    [COLOR= #0000BB]$regel[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"
"[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$regel[/COLOR][COLOR= #007700]);[/COLOR] 
        [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$regel[/COLOR][COLOR= #007700]; 
}[/COLOR]
?>
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren