Archive

Posts Tagged ‘xml.rss’

Creating XML-RSS Feed Using PHP MYSQL

June 11th, 2010 R Arun Raj No comments

I have been working to create crowler friendly rss feed for our website. I think it is very easy to build . But when i started coding it i got so many problems with xml and special charcters. I tried program for replacing special characters. But it wont work. Finally i used utf8_encode. It worked

$h=utf8_encode(clean_url($result['name']));
$d=utf8_encode(clean_url($result['discription']));

I have attached PHP Source code for XML Generator

feed.php

Right click on the above link and save target as …

Below function is used to clean all extra characters in the content.

function clean_url($text)
{
$text=strtolower($text);
$code_entities_match = array(‘>>’,'–’,'�’,'–’,'&’,'“’,'”’,'–’,'’’,'-’,'–’,'”‘,’!',’@',’#',’$',’%',’^',’&’,'*’,'(‘,’)',’_',’+',’{‘,’}',’|',’:',’”‘,’< ‘,’>’,'?’,’[',']‘,’\\’,';’,”‘”,’,',’.',’/',’*',’+',’~',’`',’=',’-',’ï’,'–’,”‘”,’O');

return str_replace($code_entities_match,”, $text);
}

To make an rss feed you need title, description and link

Sample RSS FEED format

<rss version=”0.91″>
  <channel>
    <title>XML.com</title>
    <link>http://www.xml.com/</link>
    <description>XML.com features a rich mix of information and services for the XML community.</description>
    <language>en-us</language>
       <item>
            <title>Normalizing XML, Part 2</title>
            <link>http://www.xml.com/pub/a/2002/12/04/normalizing.html</link>
             <description>In this second and final look at applying relational normalization techniques to W3C XML Schema data modeling, Will Provost discusses when not to normalize, the scope of uniqueness and the fourth and fifth normal forms.</description>
       </item>

    <item>
      <title>SVG’s Past and Promising Future</title>
          <link>http://www.xml.com/pub/a/2002/12/04/svg.html</link>
           <description>In this month’s SVG column, Antoine Quint looks back at SVG’s journey through 2002 and looks forward to 2003.</description>
    </item>
  </channel>
</rss>

also go through the source code attached

what is web 2.0

March 2nd, 2008 R Arun Raj No comments

The  Web 2.0 is a standard  for the website that allow users to participate . That means user can participate . They can express their feeling and ideas . The web 2.0 websites seems to be very fast even with multimedia content.This is achieved by the use of CSS. The main technology behind web 2.0 is  AJAX. Thats a very good and simple technology derived from the old technologies . It means Asynchronous javascript and XML .

Technologies ,
The core technology behind web 2.0 is ajax . Its a combination of all latest Technologies

Web 2.0 websites typically include some of these features:

Rich Internet application techniques, often Ajax-based
Semantically valid XHTML and HTML markup
Microformats enriching pages with additional semantics
Folksonomies (in the form of tags or tagclouds, for example)
Cascading Style Sheets to separate presentation from content
REST and/or XML- and/or JSON-based APIs
Syndication, aggregation and notification of data in RSS or Atom feeds
Mashups, merging content from different sources, client- and server-side
Weblog publishing tools
forum software, etc., to support user generated content
OpenID for transferrable user identity
Use of Open source software, such as the LAMP stack
 

Disadvantage ,

Do you think web 2.0 is secure ?

it is not secure , comment on it

Categories: web 2.0 Tags: , , ,

Videos, Slideshows and Podcasts by Cincopa Wordpress Plugin