| Blog Real World | Blogger | Free Weblog Site | New Weblogs Tool |
Wombler.com
Home | About | Help | Submit | Display | Release Typ: Beta v 0.1

Contact@
Please use the submit form to send me comments.

Wombler.com php code snippets ...
Use this code with magpieRSS!


If you need more information please use the submit form to send me a message.

(c) 2003 Wombler.com

----------------------------------> rss-cockpit-demo.php <html> <head> <title>RSS-Cockpit Demo | Wombler.com</title> </head> <body bgcolor=white text="#000000"> <?php // ----------------------------------------------------- // // Hi, this is a simpel code snippet for MagpieRSS. // This script will help you to handel a bigger number // of feeds using a .csv document. // See full demo at: http://www.wombler.com/ // // .cvs file format: // ;;;; // URL;Category;Language;Description(Keywords);Extra; // ;;;; // // ----------------------------------------------------- echo "<center><form name=\"form1\" method=\"post\" action=\"\"><br> <input type=\"text\" name=\"anfrage\" size=\"20\" maxlength=\"100\" value=\"$anfrage\">&nbsp;&nbsp;<input type=\"submit\" name=\"Submit\" value=\"Blog Search\"> </form>"; if(!isset($anfrage)) $anfrage = "all"; // Read CVS data - put name and location here $dataset = file("rss-database.csv"); echo "<form method=GET action=\"rss-show-demo.php\" target=\"_blank\"> <select NAME=\"url\" SIZE=\"12\">"; for($i=4;$i<=count($dataset)-1;$i++){ if(!strstr($dataset[$i],";;;;")){ $satz = split(";",$dataset[$i]); $j++; $url[$j] = $satz[0]; $rubrik[$j] = $satz[1]; $sprache[$j] = $satz[2]; $beschreibung[$j] = $satz[3]; $extra[$j] = $satz[4]; } $anfrageklein[$j] = strtolower($anfrage); $beschklein[$j] = strtolower($beschreibung[$j]); $rubrikklein[$j] = strtolower($rubrik[$j]); $beschklein[$j] = strtolower($beschreibung[$j]); $spracheklein[$j] = strtolower($sprache[$j]); // Very simpel search ... ;-) if(substr_count($beschklein[$j],$anfrageklein[$j]) >0 || substr_count($rubrikklein[$j],$anfrageklein[$j]) >0 || substr_count($spracheklein[$j],$anfrageklein[$j]) >0 || $anfrageklein[$j] == "all") { echo "<OPTION value=\"$url[$j]\"> No. $j -> $beschreibung[$j] -> Category: $rubrik[$j] -> Language: $sprache[$j]"; } } echo "</select><br><br> <INPUT TYPE=submit value=\"Select & Display\" BORDER=0 WIDTH=69 HEIGHT=22> </FORM></center>"; ?> </BODY> </HTML> ----------------------------------> rss-show-demo.php <? if(!isset($url)) { echo "No Result!"; die(); } require_once("rss_fetch.inc"); $rss = fetch_rss( $url ); echo "Headlines from: " . $rss->channel['title'] . "<p>"; echo "<ul>"; foreach ($rss->items as $item) { $href = $item['link']; $title = $item['title']; $description = $item['description']; $subject = $item['subject']; echo "<li><a href=$href target=\"_blank\">$title</a><br>$description<br>$subject</li><br>"; } ?> ----------------------------------> .cvs file demo ;;;; URL;Category;Language;Description(Keywords);Extra; ;;;; http://bootleg-rss.g-blog.net/wired_com.pcgi;internet business marketing;English;Wired Internet;; http://www.researchbuzz.com/researchbuzz.rss;internet business marketing;English;Researchbuzz Business;; http://www.heise.de/tp/news.rdf;internet heise www news;Deutsch;Telopolis Headlines;; http://www.heise.de/newsticker/heise.rdf;Internet IT Security Computer;Deutsch;Heise IT-News;; http://gamesurf.tiscali.de/syndication/rdf/headlines.rdf;internet games;Deutsch;Gamesurf Gamer News;; http://www.golem.de/golem_backend.rdf;internet www news business marketing;Deutsch;Golem Internet News;; http://rss.orf.at/futurezone.xml;internet forschung news;Deutsch;Magazin FUTUREZONE vom ORF;;