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.iceteks.com/news/rssfeed.xml

  1. <?php
  2. require("../master_config.php");
  3. include($iceteks_vars[serverpath]."scada/mainlogger.php");
  4.  
  5. header("Content-type: application/rss+xml");
  6. echo("<?xml version=\"1.0\" ?>\n");
  7. ?>
  8. <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  9.  
  10.    <channel>
  11.  
  12.    <title>IceTeks Posted Articles</title>
  13.    <description>Various reviews and articles from around the tech globe!</description>
  14.    <link>http://www.iceteks.com</link>
  15.  
  16.  
  17.  
  18.  
  19. <?php
  20.  
  21. $sqlinfo = mysql_connect($iceteks_vars[sqlhost],$iceteks_vars[sqluser],$iceteks_vars[sqlpass]);
  22.  
  23. $result = mysql_select_db($iceteks_vars[frontpagedb],$sqlinfo);
  24.  
  25. $result = mysql_query("select * from main where notfullpost!='1' and link!=''  order by date DESC limit 30;") or die("<font color=\"red\">SQL Error: " . mysql_error()."</font>");
  26.  
  27. $count = mysql_num_rows($result);
  28.  
  29.  
  30. while($count>0)
  31. {
  32. $info = mysql_fetch_array($result);
  33.  
  34. $info[content] =  str_replace('<br>', '\n', $info[content]);
  35. $info[link] =  str_replace('&', '&amp;', $info[link]);
  36.  
  37. $info[content] =  str_replace('&', '&amp;', $info[content]);
  38. $info[title] =  str_replace('&', '&amp;', $info[title]);
  39.  
  40. $info[content] =  str_replace('?', '\'', $info[content]);
  41. $info[title] =  str_replace('?', '\'', $info[title]);
  42.  
  43. $info[content] =  str_replace('?', '\'', $info[content]);
  44. $info[title] =  str_replace('?', '\'', $info[title]);
  45.  
  46. $info[content] =  str_replace('?', '[euro]', $info[content]);
  47. $info[title] =  str_replace('?', '[euro]', $info[title]);
  48.  
  49. $info[content] =  str_replace('?', '"', $info[content]);
  50. $info[title] =  str_replace('?', '"', $info[title]);
  51.  
  52. $info[content] =  str_replace('?', '"', $info[content]);
  53. $info[title] =  str_replace('?', '"', $info[title]);
  54.  
  55. $info[content] =  str_replace('?', '(R)', $info[content]);
  56. $info[title] =  str_replace('?', '(R)', $info[title]);
  57.  
  58. $info[content] =  str_replace('?', '(TM)', $info[content]);
  59. $info[title] =  str_replace('?', '(TM)', $info[title]);
  60.  
  61. $info[content] =  str_replace('<', '&lt;', $info[content]);
  62. $info[title] =  str_replace('<', '&lt;', $info[title]);
  63.  
  64. $info[content] =  str_replace('>', '&gt;', $info[content]);
  65. $info[title] =  str_replace('>', '&gt;', $info[title]);
  66.  
  67. $info[content] =  str_replace('?', '...', $info[content]);
  68. $info[title] =  str_replace('?', '...', $info[title]);
  69.  
  70. $info[content] =  str_replace('?', 'e', $info[content]);
  71. $info[title] =  str_replace('?', 'e', $info[title]);
  72.  
  73. $info[content] =  str_replace('?', 'a', $info[content]);
  74. $info[titlet] =  str_replace('?', 'a', $info[title]);
  75.  
  76. $info[content] =  str_replace('?', 'e', $info[content]);
  77. $info[title] =  str_replace('?', 'e', $info[title]);
  78.  
  79. $info[content] =  str_replace('-', ' ', $info[content]);
  80. $info[title] =  str_replace('-', ' ', $info[title]);
  81.  
  82. $info[content] =  str_replace('?', ' ', $info[content]); // <-- don't removedifferent type of -
  83. $info[title] =  str_replace('?', ' ', $info[title]); // <-- don't removedifferent type of -
  84.  
  85. $info[content] =  str_replace('?', '\'', $info[content]);
  86. $info[title] =  str_replace('?', '\'', $info[title]);
  87.  
  88. $info[content] =  str_replace('?', '+', $info[content]);
  89. $info[title] =  str_replace('?', '+', $info[title]);
  90.  
  91. $info[content] =  str_replace('?', 'O', $info[content]);
  92. $info[title] =  str_replace('?', 'O', $info[title]);
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103. ?>
  104.  
  105.    <item>
  106.    <title><?php echo($info[title]." [".date("F dS Y",$info[date]+$TimeZone)."]");?></title>
  107.    <description><?php echo($info[content]);?></description>
  108.    <link><?php echo($info[link]);?></link>
  109.    <guid><?php echo($info[link]);?></guid>
  110.    </item>
  111.  
  112.  
  113. <?php
  114. $count--;
  115. }
  116.  
  117.  
  118. mysql_close($sqlinfo);
  119. ?>
  120.  
  121.  
  122. </channel>
  123.  
  124.    </rss>
  125.  
Copyright © 2002-9 Sam Ruby, Mark Pilgrim, Joseph Walton, and Phil Ringnalda