Friday, November 23, 2007

How to get your Site Indexed by Google within few days ?!

You have created a great website and have been wondering when people would get to know your website. You want your SEO for your website to work and you want to let Google let you know that you have such useful content and quality content. What you are gonna do? First things first and always first!!

To make your site rank in the search engine especially Google, you should have the web pages of your website indexed in the Google's database. Any guesses how you do that..? Is it going to Google's Directory or Dmoz's Directory to submit your webiste..???
If your answer to these questions is "yes" then ummm... probably you are right but Of course you have failed to hit the Bull's Eye!!!

If you want your website to indexed in Google with proper information about each and every page i.e. their metadata you need to use Google's Webmaster Tool. Oh.. No need to worry that's absolutely free, truly in Google's style!!

First of all you need to create an XML Sitemap of your website. This XML site map will contain the list of all your url's in your website. Along with the URL your xml site map should also have some information about what these urls (web pages) contain. Then you have to include some Metadata of your web pages, these are title and description of each and every page. This should be unique. Say if you have a website which has 1000 pages. huh ?!! Is it possible to create xml tags 1000 plus xml tags for each page including title, description and url ? Of course not. That is why you would use tools. Tools that create xml site map for you as soon as you copy paste the home page url of your website. XMLSitemaps.com is one such useful website to create XML sitemaps of your website.

Now rather than writing in paragraph I would like to point wise so that it become easier for you to follow it.

1. Download sitemap.xml in your desktop and upload it to your server where you have kept your home page of the website.

2. Now you should be able to see the xml sitemap by typing url www.mysite.com/sitemap.xml

3. Open another webiste www.google.com/webmasters/sitemaps . Now sign in using your Google Account username and password. you will find a webpage showing dashboard.

4. In the dashboard below sites enter the url of your website and press "Add Site" button. Your site will be visible underneath. On the right hand side you will find a clolumns sitemap.

5. Under this column click "Add" link. A nwe Page will open up , under choose tupe list box choose general sitemap.

6. Below a text box will appear where you enter the sitemap url --> www.mysite.com/sitemap.xml and click "Add General Sitemap" button.

7. Next page a code will appear prepare a plain HTML page and name it as the code provided. Then finally upload the page in in the same directory of your web server where you have placed your home page.

8. Now when you do all these your site xml data is uploaded in the Google. You may like to verify the sitemap.xml file for error free xml codes which Google takes very strictly.

9. After the verification is over open Google.com after 48 hrs. and type in the search box--> site:http://www.mysite.com and see the listing. You will see the pages of your website indexed. Count the no. of pages with the list to confirm the all pages have been indexed properly !!!

Genrally it will !!

If you don't see within 48 hrs. you may check the updates in the
www.google.com/webmasters/sitemaps about the status. Genrally it takes 2 - 5 days for Google to do the same.


Thursday, November 08, 2007

PHP comes with Framework Now !!!

This is for all those people who are related with PHP development and want to see PHP based application development as strong and robust as Java and .Net (evolved over the years). What really lacks in the present version of the PHP is that it is not well structured (framework) and programs are not highly secure. Until now PHP is not supported by any framework unlike J2EE or Microsoft .Net which have really strong frameworks.

This framework enables application development, coding, security, information flow and control over the code and application really strong. The programmer is empowered here and is less prone to do mistakes while implementing application's architecture. Frameworks also impose certain standards of coding which every programmer / developer has to use making the code more manageable and readable/understandable.

Frameworks supports 'using pre-built codes and components' including API's which developers can use to build there applications faster and easier. It also makes the applications lesser prone to bugs and more secure.

Lately Ruby or better 'Ruby on Rails' was used or considered as a good alternative for building faster application using PHP in the web as it uses it's own framework (MVC type) for application development and we in Axaya have also been thinking about the same (as told by Murthy Sir once). But Using Rails has some disadvantages like learning a new programming language plus the support of Rails based framework on servers is questioned. How many corporate applications are built using Rails ??

So what do we do..???

Now here comes ZEND FRAMEWORK.!!! A framework for developing PHP application. Now you don't need to learn a new programming language plus your coding becomes easier, more manageable, follows standards and now you develop more secure code too!! You have now become a better programmer / developer following this framework. There are other frameworks also available but, I think it's better if we go by ZEND, the most trusted name so far. ZEND corp. distributes PHP around the web known as Zend core PHP.

ZEND framework supports the familiar JAVA based MVC pattern for application development. This is the basic architecture of most of the JEE based applications. So better compatibility with Java and PHP based applications also.



A small refresher to what MVC is...

MVC
Model - It is where the business logic resides. EJBs
Controller - Application flow logic, navigation ( an intermediary between Model and View) - Struts, Servlet, Spring
View - Application front end, basically the UI of the applications - JSF, JSP, including HTML, CSS & Ajax.


...if u want to see the details of Zend Framework please check this out.

Framework (what's there?) - http://www-128.ibm.com/developerworks/library/os-php-zend1/

PHP IDE - from Eclipse (makes developer's life easier ) - http://www.eclipse.org/proposals/php-ide/
dowld it for free and experience...


The time is not too distant when PHP will stand along with JAVA and .Net as the 3 main languages for developing web applications. -- told by someone.