Sunday, July 17, 2011


1. An Amd 1400 chip running without a heat sink gets as hot as 370 degrees.
2. Seagate introduced the first add for pcs in 1979.It held 5 M.B of data.
3. If u opened up the case of the original Macintosh, u will find 47 Signatures one for each member of Apple's Macintosh division as of 1982.
4. The first computer company to register for a domain name was digital equipment corporation.
5. Did u know Apple & Sun came very close to a merger in 1996.
6. The technology contained in a single game boy unit in 2000 exceeds all
7. Hewlett Packard was started at a garage in Palo Alto in 1939.
8. Tetris has sold over 40 million copies worldwide, since it began in 1982.
9. The super flop (LOL!) sega dream cast, released in 1999, was the first console game machine to sport 128 Bit architecture.
10. The most expensive game ever developed was "ShenMue" for sega dreamcast.It costs $20 million.
11. The QWERTY keyboard layout is 129 years old.
12. South Korea’s SK telecom offers an inaudible ring tone to its customers which, it claims, can repel mosquitoes.
13. In 1971, the first speech recognition software named, "Hearsay" was developed in India.
14. Macquariums are aquariums made from old macintosh computers.
15. The servers r in Denmark. The software is from Estonia. The domain is registered in Australia & the corporation is in south
Pacific island.Ths Kazaa the p2p software.
16. Bill gates & Paul Allen started a company called Traf-O-Data to monitor traffic flow.
17. The four largest software makers in the world are:-
(a) Microsoft
(b) Adobe
(c) Sap
(d) Computer Associates.

“Your most unhappy customers are your greatest source of learning.”

Thursday, July 7, 2011

PHP Tutorial with XAMPP for Windows


PHP is a powerful tool for making dynamic and interactive Web pages.
It is the widely-used, free, and efficient alternative to competitors such as Microsoft's ASP and other scripting languages.
In our tutorial you will learn about PHP, and how to execute scripts on your server.

XAMPP is an easy to install Apache distribution containing MySQL, PHP and Perl. XAMPP is really very easy to install and to use - just download, extract and start.

What is PHP?
  • PHP stands for PHP: Hypertext Preprocessor
  • PHP is a server-side scripting language, like Ruby on Rails, ASP, JSP and others
  • PHP scripts are executed on the server
  • PHP is an open source software
  • PHP supports many databases (MySQL, Oracle, PostgreSQL and etc.)
  • PHP is free to download and use
  • PHP files have a file extension of ".php" or ".php3"

Why PHP?
  • PHP runs on different platforms (Windows, Linux, Unix, etc.)
  • PHP is compatible with almost all servers used today (Apache, IIS, etc.)
  • PHP is FREE to download at
  • PHP is easy to learn and runs efficiently on the server side
What do you Need?
Note: The default installation directory is C:\xampp and C:\xampp\htdocs is the location for the PHP file.

How to Run a PHP file using XAMPP?
  • Create a PHP file then save it to C:\xampp\htdocs directory.
  • Open your browser then type "http://localhost/Your PHP File name" or "http://I.P. Address/Your PHP File name"

Basic PHP Syntax

A PHP scripting block always starts with and ends with ?>. A PHP scripting block can be placed anywhere in the document.


//Put your code here

A PHP file normally contains HTML tags, Javascript and PHP scripting code.


echo " Hello World ";

Each code line in PHP must end with a semicolon. The semicolon is a separator and is used to distinguish one set of instructions from another.

Note: The file must have a .php or .php3 extension else the PHP code will not be executed.

Comments in PHP
  • // to make a single-line comment
  • /* and */ to make a large comment block.

//This is a comment

This is
a comment


Variable Declarations in PHP

Variables are used for storing a values, like text strings, numbers or arrays.
In PHP, a variable does not need to be declared before adding a value to it and no data type needed, PHP will automatically converts the variable to the correct data type, depending on its value.

PHP variables are start with a $ sign symbol.

$variable_name = value;

Naming Rules for PHP Variables
  • A variable name must start with a letter or an underscore "_"
  • A variable name should not contain spaces.
  • A variable name can only contain alpha-numeric characters and underscores (a-z, A-Z, 0-9, and _ )
Valid Example: