View Full Version : RSS/XML Search Feeds

04-12-2004, 07:53 PM
Hi. Do a search using the online demo (http://www.phpdig.net/navigation.php?action=demo) and then click the 'View RSS for this Page' link near the bottom of the search results page.

What do you think? Give me some feedback! Thanks. :D

04-12-2004, 10:36 PM
Looks great.

Tiny bug? I saw an untranslated ampersand in:
<description>...o-8859-7 and <span class="phpdigHighlight">windows</span>-1251 added thanks to all those for helping . Characters '._~@#$:&%/;,=- now allowed in indexing and searches. CSS modified in all...</description>

04-13-2004, 04:19 AM
Just what I was looking for ..

Is there a way to get this to be the default page after the search ?

ie: instead of the html results pages ?

Would fit with a small project I am playing with ..


04-13-2004, 06:08 PM
Hi. Yeah, the translation was using ASCII values but now it uses HTML entities instead:

function xmlentities($string, $quote_style=ENT_COMPAT) {
$trans = get_html_translation_table(HTML_ENTITIES, $quote_style);
$encoded = str_replace("&amp;","&amp;amp;",strtr($string, $trans));
return $encoded;

To make the feed as default page, I suppose a header redirect could be done once the file is created.