About Blog

This blog will give u brief introduction about various technology such as PHP, JAVA, AJAX etc.

Friday, 16 March 2012

RSS


With RSS it is possible to distribute up-to-date web content from one web site to thousands of other web sites around the world.
RSS allows fast browsing for news and updates.

What is RSS?

  • RSS stands for Really Simple Syndication
  • RSS allows you to syndicate your site content
  • RSS defines an easy way to share and view headlines and content
  • RSS files can be automatically updated
  • RSS allows personalized views for different sites
  • RSS is written in XML

Why use RSS?

RSS was designed to show selected data.
Without RSS, users will have to check your site daily for new updates. This may be too time-consuming for many users. With an RSS feed (RSS is often called a News feed or RSS feed) they can check your site faster using an RSS aggregator (a site or program that gathers and sorts out RSS feeds).
Since RSS data is small and fast-loading, it can easily be used with services like cell phones or PDA's.
Web-rings with similar information can easily share data on their web sites to make them better and more useful.

Who Should use RSS?

Webmasters who seldom update their web sites do not need RSS!
RSS is useful for web sites that are updated frequently, like:
  • News sites - Lists news with title, date and descriptions
  • Companies - Lists news and new products
  • Calendars - Lists upcoming events and important days
  • Site changes - Lists changed pages or new pages

AJAX Example


<html>
<head>
<script type="text/javascript">
function loadXMLDoc()
{
var xmlhttp;
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("myDiv").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","ajax_info.txt",true);
xmlhttp.send();
}
</script>
</head>
<body>


<div id="myDiv"><h2>Let AJAX change this text</h2></div>
<button type="button" onclick="loadXMLDoc()">Change Content</button>


</body>
</html>




AJAX


AJAX = Asynchronous JavaScript and XML.
AJAX is not a new programming language, but a new way to use existing standards.
AJAX is the art of exchanging data with a server, and update parts of a web page - without reloading the whole page.


AJAX is a technique for creating fast and dynamic web pages.
AJAX allows web pages to be updated asynchronously by exchanging small amounts of data with the server behind the scenes. This means that it is possible to update parts of a web page, without reloading the whole page.
Classic web pages, (which do not use AJAX) must reload the entire page if the content should change.
Examples of applications using AJAX: Google Maps, Gmail, YouTube, and Facebook tabs.







PHP


About PHP
            PHP is a powerful tool for making dynamic and interactive Web pages. PHP stands for PHP Hypertext Preprocessor. It is a server side Technology. PHP Scripts are executed on server. It contains HTML tags and JavaScript.

What is needed?
   you need access to a computer or a server that can run PHP. In contrast to HTML and CSS, PHP is not affected by which browser your visitors use, but by the type of server that's hosting your pages. This is because PHP is a server-side technology.

What is PHP?
PHP was originally an acronym for Personal Home Pages, but is now a recursive acronym for PHP: Hypertext Preprocessor. PHP was originally developed by the Danish Greenlander Rasmus Lerdorf, and was subsequently developed as open source. PHP is not a proper web standard - but an open-source technology. PHP is neither real programming language - but PHP lets you use so-called scripting in your documents.

To describe what a PHP page is, you could say that it is a file with the extension .php that contains a combination of HTML tags and scripts that run on a web server.
How does PHP work?

Explanation

The best way to explain how PHP works is by comparing it with standard HTML. Imagine you type the address of an HTML document (e.g. HTTP://www.mysite.com/page.htm) in the address line of the browser. This way you request an HTML page. It could be illustrated like this:








As you can see, the server simply sends an HTML file to the client. But if you instead type http://www.mysite.com/page.php - and thus request anPHP page - the server is put to work:



The server first reads the PHP file carefully to see if there are any tasks that need to be executed. Only when the server has done what it is supposed to do, the result is then sent to the client. It is important to understand that the client only sees the result of the server's work, not the actual instructions. This means that if you click "view source" on a PHP page, you do not see the PHP codes - only basic HTML tags. Therefore, you cannot see how a PHP page is made by using "view source". You have to learn PHP in other ways, for example, by reading this tutorial.

For more detail, visit the following link:

http://www.w3schools.com/php/php_intro.asp