Friday 1 May 2015

PHP,AJAX facebook model multi user chat system

Facebook model chat box with the following features
1)Online/Offline status
2)Unread message view
3)Multi user chat
4)Online/Offline button




Chat window


Download 


Pages included

PHP files

1) connection.php
    Connect your database here

3) index.php
    Login page

3) chat.php
  chatting home page

4) getlist.php
    Get name off all users through ajax

5) send_save_chat.php
    Saving messages to database

6) update.php
    Update user session status

7) view.php
    View user messages

Js files

1) popup.php
    Ajax content to create popup box for chat

2) refresh.js
  Refresh content of chat window and name list

3) sendchat.js
    Send chat to database


Download 
Php ajax chat

Wednesday 21 May 2014

Simple Website Mistakes - Relax ! even pros do


HTML OR XML SITEMAPS - Anush Anilkumar

HTML OR XML SITEMAPS

In this article we will take a look at which sitemap search engine BOLTS look for the most whether its HTML or XML Sitemaps
HTML or XML Sitemaps
The question any amateur designer, even pro one while making a site map is which one to choose with HTML sitemap or XML sitemap for your website, it indeed is a good question and many overcome this by making both of them.But it can be difficult to keep both of them updated at the same time.
Before we get deep lets have a glance about both XML and HTML site map.

XML SITEMAP

According to sitemaps.org sitemaps are an easy way for webmasters to inform search engines about pages on their sites that are available for crawling. In its simplest form, a Sitemap is an XML file that lists URLs for a site along with additional metadata about each URL (when it was last updated, how often it usually changes, and how important it is, relative to other URLs in the site) so that search engines can more intelligently crawl the site.

SAMPLE SITE MAP


<?xml version="1.0" encoding="UTF-8"?>

<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">

   <sitemap>

      <loc>http://www.example.com/sitemap1.xml.gz</loc>

      <lastmod>2004-10-01T18:23:17+00:00</lastmod>

   </sitemap>

   <sitemap>

      <loc>http://www.example.com/sitemap2.xml.gz</loc>

      <lastmod>2005-01-01</lastmod>

   </sitemap>

</sitemapindex>
              
              

HTML SITEMAP

HTML site maps are just a simple web page that visualizes how the contents are spread across your website; it's mainly used to inform the user, so it doesn't have a standard protocol to follow. Its used by many designers to make their pages easily crawled by search engines as it has all the pages with a informative name, and the page is also linked from all the pages in the site.
Many go with XML site map as they think as the XML is lower level language and more close to computer language that HTML, and the search engine bolts will index them faster as it provides link along with the frequency and Google web master tool even has an option to submit a XML site map, most importantly ´ easy to build.
Unfortunately things actually work the other way around, as the head of Google?s Web spam team, Matt Cutts explains it in his video that Google more give importance to HTML site map than XML sitemap as it helpful to both search engines and users as well, which agrees the fact that both websites and Search engines are after the user.
For a HTML sitemap example check out Sitemap

HOW TO CHOOSE

If you think you have only one option available, it's recommended that you stick to HTML than XML, so it solves the problem for both the user and Bolts.
If you have both time and patience it's recommended to keep both XML and HTML site maps.

Colour Meanings in Design