Comments

 

Kritika Singh

6 Months Training from PHP Infotech has helped me....

Read...

Vikram Sharma

PHP Infotech is the best for web based training/ development because....

Read...

Atul Kumar

PHP Infotech is the one of best php institute....

Read...

Priya Arora

Hearby I Priya Arora a Bridge Student of PHPI....

Read...

Naina Kapoor

I have already taken PHP training at two institutes....

Read...

Priyanka Chaudhry

I have been working as a system administrator for...

Read...

Meenakshi Gupta

From 4 years of multimedia & animation background to....

Read...

 

Events

News

Introduction to PHP

PHP is a server side and widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML.

 

What is PHP?

  1. PHP stands for Hypertext Preprocessor
  2. PHP is a server-side scripting language, like ASP
  3. PHP scripts are executed on the server
  4. PHP supports many databases (MySQL, Informix, Oracle, Sybase, Solid, PostgreSQL, etc.)
  5. PHP is an open source software
  6. PHP is free to download and use

 

What is a PHP File?

  1. PHP files can contain text, HTML tags and scripts
  2. PHP files are returned to the browser as plain HTML
  3. PHP files have a file extension of ".php", ".php3", or ".phtml"

Why PHP?

  1. PHP runs on different platforms (Windows, Linux, Unix, etc.)
  2. PHP is compatible with almost all servers used today (Apache, IIS, etc.)
  3. PHP is FREE to download from the official PHP resource: www.php.net
  4. PHP is easy to learn and runs efficiently on the server side

Where to Start?

To get access to a web server with PHP support, you can:

  1. Install Apache (or IIS) on your own server
  2. Install PHP
  3. Install MySQL

PHP Installation

 

Download PHP for free here: http://www.php.net/downloads.php

 

Download MySQL for free here: http://www.mysql.com/downloads/index.html

 

Download Apache for free here: http://httpd.apache.org/download.cgi

Your first PHP-enabled page

 

<html>
<body>
<?php echo "Hello World"; ?>
</body>
</html>

 

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.

 

There are two basic statements to output text with PHP: echo and print. In the example above we have used the echo statement to output the text "Hello World".

 

Copyright © 2009. All Rights Reserved.
Designed by: PHP InfoTech