Saturday, April 20, 2013

Unique search engine optimization (seo) tips for beginners

Once you finish designing your website second step is getting visitors to your blog or website. Search engine optimization plays very big roll into it.

Search engine optimization is a technique that allows a website to get more visitors from search engines like Google, Yahoo, Bing, altavista etc.

Important part in making search engine friendly website is

  • Website/Page Title
Page title is very important part in SEO it is added into title tag. <title>Your Page</title>
  • Meta Description
  • Meta Keywords
Meta description and meta keyword is not major facter search engines consider when they rank sites but it  plays very big role by telling crawling robots about page and its content.
The meta description tag looks like

<meta name="description" content="details about your page.">


  • Header tags
<h1>,<h2>, <h3> <b> ,<i> etc are the header tags.

Header tags is easy way to help your website visitors by using bold, italic tags with the help of this tags users can notice important items from your page.

  • Link structure
 Link structure is about page depth, Internal links, back links to your site! Suppose you website has imporant page,But If it take 5-6 clicks to reach there which gives bad impression and remains hidden most of the time. You should try to optimize site in a such way that visitors can access webpage with maximum 3 to 4 clicks.



to know more in deep you can use Search engine optimization starter guide by google! click here


Friday, April 19, 2013

Basic Commands in Linux

To work in a Linux command, The user should select 'Terminal' mode.
(open: CLT+ALT+F1 close: CLT+ALT+F7)

In Linux # indicates admin(root) user and $ indicates the default/normal user.




  • $logname : This command display the current username.



  • $pwd : This command display the present working directory.



  • $clear : This command clears the screen.



  • $logout : This command logout used from the current user.



  • $date : This command displays date and time.



  • $who am i : This command use to display current username, terminal number, date and time at which you logged in the system.



  • $who : This commnad display information about all users who logged into the system.


i.e each username, ternimal number, date and time at which the users logged into the system.


  • $finger : It displays complete information about all users who logged into the system.



  • $cal : This command display previous/current calender.

$cal year 
usage : $cal 2013
$cal month year
usage: $cal 3 2012

  • $init : This command is use to change the system behaviour at run level.
#init 1 : This command bring the system to single usermode.
#init 2 : This command brings the system to multi usermode.
#init 3 : This command brings the system to multiuser mode with resource shared.
#init 6 : This command hunts and reboot the system to default run level.



Introduction to Linux

Linux is an open source version of the UNIX operating system that envolveed from a kernel created by Linus Torvalds

Linux Stands for Linu's Unix version.

People have been developing operating systems based on open source code of the Linux Kernel.
for example Ubuntu.

Originally Linux was developed based on the Unix, But now it it just not another flavor of Unix.

Today Linux is stable and versatile operating system and most chosen operating system as network server.

Sunday, August 26, 2012

String variables in PHP

Hello,

Today I will explain about String variables in PHP, PHP string variables are used to score and manipulate that data. Once we have created a string variable we can manipulate it. We can use string directly into function or it can be stored into variable.

for example:

<?php

$text="My first string variable";
echo $text;

?>

Here we have created s string variable called text and then assign the text My first string variable to it. and then writing the value of the text variable for the output.

There is only one string operator in PHP to join two string values together, It is known as PHP Concatenation Operator.

Here is an example to join two string variables together.

<?php

$one = "My first";
$two = "string variable";

echo $one ." " .$two;

?>


----------------
output:
My first string variable

Monday, August 6, 2012

PHP variables

Today we will learn about PHP variables.

One can use PHP variables to store informations there are some rules for PHP variables such as
  • PHP variable starts with the $ sign, and followed by name of the variable.
           for example: $text
  • PHP variable name much begin with a letter or the underscore character.
  • PHP variable name can only contain alphabetic, numeric characters and underscore.
  • Variable name should not contain spaces.
  • Variable names are case sensitive.
            for example: $text and $TEXT are two different variables.

Here is simple programme for sum of two numbers using variable.

<!DOCTYPE html>
<html>
<body>


<?php
$no1=5;
$no2=10;
$answer=$no1+$no2;
echo
$answer;
?>

</body>
</html>


-------------------------------
output:
15

PHP has 4 different variable scopes such as
  • local
  • global
  • static
  • parameter
Local variables are declared within a PHP function and can only access within that funcion.
Global variable is declared outside of any function and It can be accessed from any part of script.
Static variable are used when you do not want to delete local variable by using static keyword before the first declaration of the variable.
Parameter is a local variable whose value is passed to the function by the calling code.