Sorry

This feed does not validate.

In addition, interoperability with the widest range of feed readers could be improved by implementing the following recommendation.

Source: http://www.fatsquirrel.org/sandwichselector/atom.php

  1. <?xml version="1.0" encoding="iso-8859-1"?>
  2. <feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  3.  <title>Sandwich Selector</title>
  4.  <subtitle>Reviews of pre-packaged sandwiches</subtitle>
  5.  <link rel="alternate" type="text/html"
  6.        href="http://www.fatsquirrel.org/sandwichselector/"/>
  7.  <id>tag:fatsquirrel.org,2024-04-19:/bologs/veghead/</id>
  8.  <rights>Copyright 2001-2005, Veghead</rights>
  9.  <updated>2024-04-19T05:45:46Z</updated>
  10.  <link rel="self" href="/sandwichselector/atom.php" />
  11.  <icon>http://www.fatsquirrel.org/sandwichselector/favicon.ico</icon>
  12.  <author>
  13.    <name>Veghead</name>
  14.    <uri>http://www.fatsquirrel.org/</uri>
  15.  </author>
  16.  
  17. <?
  18. $maxcount=20;
  19.  
  20. $dbh = mysql_pconnect($dbserver,$dbuser,$dbpass);
  21. if (!$dbh) {
  22. exit(0);
  23. }
  24.  
  25. mysql_select_db($dbname,$dbh);
  26.  
  27. $query="select * from sandwich where sa_flags&1=1 order by sa_timestamp desc limit $maxcount";
  28.  
  29. $result=mysql_query($query);
  30. $returned=mysql_num_rows($result);
  31.  
  32. if ($returned>0) {
  33. while(($row=mysql_fetch_array($result)) && ($count<($maxcount+$mincount))) {
  34. $nicedate=strftime("%Y-%m-%dT%TZ",strtotime($row["sa_timestamp"]));
  35. $tagdate=strftime("%Y-%m-%d",strtotime($row["sa_timestamp"]));
  36. print("<entry>\n");
  37.                print("<title>".htmlentities($row["sa_name"])."</title>\n");
  38. print("<updated>$nicedate</updated>\n");
  39. print("<published>$nicedate</published>\n");
  40. print("<id>tag:fatsquirrel.org,$tagdate:/sandwichselector/ssid".$row['sa_id']);
  41. print("</id>\n");
  42. print("<link rel=\"alternate\" type=\"text/html\" ");
  43. print("href=\"http://www.fatsquirrel.org/sandwichselector/?vm=");
  44. print($row['sa_id']."\"/>\n");
  45. $rant=preg_replace("/\n/m"," ",substr(stripslashes($row['sa_review']),0,200));
  46. $rant=preg_replace("/<[^>]*\Z/","",$rant);
  47. $rant=preg_replace("/</","&lt;",$rant);
  48.                print("<summary type=\"html\"><![CDATA[$rant ...]]></summary>\n");
  49. /*
  50.                //print("<summary type=\"text/html\" mode=\"escaped\">".htmlentities(htmlentities($rant))."...  </summary>\n");
  51. $rant=$row["rant"];
  52. $rant=preg_replace("/\\\\/","",$rant);
  53. */
  54. print("</entry>\n");
  55.        }
  56. }
  57.  
  58. ?>
  59. </feed>
  60.  
Copyright © 2002-9 Sam Ruby, Mark Pilgrim, Joseph Walton, and Phil Ringnalda