Introduction



The PHP Hypertext Preprocessor (PHP) is a programming language that allows web developers to create dynamic content that interacts with databases. PHP is basically used for developing web based software applications. This tutorial helps you to build your base with PHP.


What is PHP?


  • PHP: Hypertext Preprocessor

  • PHP is a widely-used, open source scripting language

  • PHP scripts are executed on the server

  • PHP is free of use


PHP is an amazing and popular language!


  • It is powerful enough to be at the core of the biggest blogging system on the web (WordPress)!

  • It is deep enough to run the largest social network (Facebook)!

  • It is also easy enough to be a beginner's first server side language!


PHP started out as a small open source project that evolved as more and more people found out how useful it was. Rasmus Lerdorf unleashed the first version of PHP way back in 1994.


  • PHP is a recursive acronym for "PHP: Hypertext Preprocessor".

  • PHP is a server side scripting language that is embedded in HTML. It is used to manage dynamic content, databases, session tracking, even build entire e-commerce sites.

  • It is integrated with a number of popular databases, including MySQL, PostgreSQL, Oracle, Sybase, Informix, and Microsoft SQL Server.

  • PHP is forgiving: PHP language tries to be as forgiving as possible.

  • PHP Syntax is C-Like.



Common uses of PHP


  • PHP can generate dynamic page content

  • PHP can create, open, read, write, delete, and close files on the server

  • PHP can collect form data

  • Access cookies variables and set cookies.

  • PHP can add, delete, modify data in your database

  • It can encrypt data.

  • PHP can be used to control user-access


Why PHP?


  • PHP runs on various platforms (Windows, Linux, Unix, Mac OS X, etc.)

  • PHP is compatible with almost all servers used today (Apache, IIS, etc.)

  • PHP supports a wide range of databases

  • PHP is free. Download it from the official PHP resource

  • PHP is easy to learn and runs efficiently on the server side




PHP Tutorials


Home

Introduction

Syntax

Variable

Comment

Echo and Print Statement

Data Types

Boolean

Integer

Number Convert

PHP String

php variable substitution in string

php string element

php string function

php addcslashes function

php addslashes function

php get magic quotes gpc function

php get meta tags function

php urlencode function

PHP $ and $$ Variables

PHP constant

PHP Magic Constants

PHP Static Variable

PHP Super Globals

PHP Globals

PHP Server

PHP reserved variable get

PHP reserved variable post

PHP reserved variable FILES

PHP reserved variable Cookies

PHP reserved variable Session

PHP reserved variable Request

PHP reserved variable environment

PHP Operator

PHP Arithmetic Operator

PHP Comparison Operator

PHP Incrementing and Decrementing Operators

PHP Identical Operators

PHP Logical Operators

PHP String Operators

PHP Ternary Operators

PHP Execution Operators

PHP Operator Precedence

PHP Array Operator

PHP Class

PHP Class Inheritance

PHP constructor and destructor

PHP abstract class

PHP class access control

PHP statement

PHP If statement

PHP else statement

PHP else if statement

PHP control structure statement

PHP while loop

PHP do while loop

PHP for loop

PHP for each loop

PHP break statement

PHP continue statement

PHP declare statement

PHP return statement

PHP require statement

PHP include

PHP require once

PHP include once

PHP goto statement

PHP function

PHP function parameter

PHP function scope

PHP array

PHP array operator

PHP array element loop

PHP array foreach loop

PHP array multidimensional

PHP html forms

PHP get and post method

form redirect

file inclusion