Tuesday, July 7, 2009

Today we are going to cover this topics,tags of PHP and their syntax,variables in PHP,data types of PHP.

Tags of PHP:



We mainly use 4 tags in PHP for any code and expressions.
They are

  • Default tag or Standard tag

  • Short tag

  • Asp style tag

  • Script tag


Default tag:



syntax:



Short tag:



syntax:


Asp tag:



syntax:
<% …........... %>

Script tag:



syntax:

Variable in PHP:



  • Variables must be start with $ sign.

  • Variables name first character must be alphabet.

  • Variables in PHP follows alpha numeric concept.

  • Variables are case sensitive.

  • We can join one or more character or words as like as variable name through _(under score).

  • Ex:
    int join_sal=100;
    (or)
    int joinSal=100;

  • A space and special symbol not allow with variable name.
    Variable must end with semicolon.



Data type :



Data type is used to define while typing of values are specific in a variable.
There are six standard data types used in PHP.

  • Integer (whole number, Ex : 54534)

  • Float/Double (real number, Ex :1.677,24.786)

  • String (any type of character which includes within single quotes. Ex : 'f',”regfd242”)

  • Array (It can store one or more value in single memory space)

  • Boolean (True or False statement)

  • Object



In PHP we use two specific data types



  • Null (undefined variables has null value .Ex : $x)

  • Resource



In C,C++,JAVA we have restriction to define a variable with data type .But in PHP we are free to define variable without data type. PHP variable is also known as dynamic variable

Monday, July 6, 2009

PHP Introduction

Today I am going to cover this topics,Introduction of PHP , where the PHP is work? And advantages of PHP.

Introduction of PHP:



While PHP was originally created by Rasmus Lerdorf in 1995 . Now the PHP is produced by The PHP Group.

What is PHP?



PHP is a scripting language. PHP is mainly used for web development.

Advantages of PHP:



  • PHP is open source software.

  • Processing is very fast compare to other softwares and other technology.

  • PHP supports the cross platform.

  • PHP is also run in low configuration.

  • PHP also support the Oops concept.

  • PHP requires minimum softwares only.

Sunday, July 5, 2009

Tell about yourself


This is most frequent and most important interview question. It is the gateway for company.
The most common mistake of freshers is telling about family details ,native place,their socializing capabilities and other junks.
After title bit googling.I thought these are the points I have to follow.

  • Keep your focus on job profile.

  • Complete answer within one to two minute.

  • Stay on professional and justify yourself for job profile.

  • Eagle view on education background.


I am practicing these things if you have suggestion comment me.

Saturday, July 4, 2009

Three tier architecture and human similarity

Today I went to PHP class. It is very interesting one. My class facility explain about three-tier architecture. He explain me in different way. He related three tier with human being. Here you can find three tier diagram




Hmmmm and his comparison goes here

Human body and Interface :


He related body with interface. Body doing the work which are visible to us. In web architecture. We are using browser for interaction and see results. This layer is called presentation layer.

Brain and PHP :


He related brain with logical layer. We use the brain to take decision likewise PHP is used to make decision in web architecture .

Memory and Database :


He related memory with database. Memory store the information similarly database stores the web or user data.