Home / PHP Tutorial

PHP Tutorial

PHP, which is recursive acronyms for “PHP Hypertext Preprocessor”, is a server-side, HTML embedded scripting language used to create dynamic Web pages. Much of its syntax is borrowed from C, Java and Perl with some unique features thrown in. The goal of the language is to allow Web developers to write dynamically generated pages quickly.
 
In an HTML page, PHP code is enclosed within special PHPtags. When a visitor opens the page, the server processes the PHP code and then sends the output (not the PHP code itself) to the visitor’s browser. It means that, unlike JavaScript, you don’t have to worry that someone can steal your PHPscript.

What is PHP?

PHP, which is recursive acronyms for “PHP Hypertext Preprocessor”, is a server-side, HTML embedded scripting language used to create dynamic Web pages. Much of its syntax is borrowed from C, …

Read More »

Why PHP?

Why PHP? it’s no secret that there are alternatives to PHP: ASP, JSP, Cold Fusion, and Perl, to name just a few. While each of these languages has differences in …

Read More »

Where do PHP Stands?

No doubt much of its popularity is due to its relative ease to learn, and its notorious looseness. Arrays and variables in PHP are able to hold any type of …

Read More »

Pre-requisite In PHP

If you choose PHP as your development language, what you need to get started depends on:   • Sound knowledge of HTML. *   • Working knowledge of JavaScript(optional, but …

Read More »

Choosing an Editor In PHP

On Linux   Bluefish – Supports any protocol that is supported by GNOME VFS. (FTP, SSH…)   gedit – gedit is a free software, UTF-8 compatible text editor for the …

Read More »

Testing your Environment In PHP

While there’s nothing wrong with getting started writing PHP scripts sing no-frills editors such as Windows Notepad or vi, chances are you’re soon going to want to graduate to a …

Read More »

First PHP script

First PHP script Every language has it… First PHP script the basic “Hello, World!” script. It is a simple script that only displays the words“Hello, World!”. Over the years this …

Read More »

PHP Syntax

PHP Syntax You cannot view the PHP source code by selecting “View source” in the browser – you will only see the output from the PHP file, which is plain …

Read More »

PHP comments

When programming in any language the process of adding comments involves writing notes alongside the code to describe what the code does and how it works. The comments are ignored …

Read More »

PHP Operators

There are three types of operators. Firstly there is the unary operator which operates on only one value, for example ! (the negation operator) or ++ (the increment operator). The …

Read More »

PHP Execution Operator

All of the operators we have looked at so far are similar to those available in other programming and scripting languages. With the execution operator, however, we begin to experience …

Read More »

PHP Variables

Variables are used for storing values, such as numbers or strings , so that they can be used many times in a script.   A large part of writing scripts, …

Read More »

PHP String

A string variable is used to store and manipulate a piece of text.   Working with Strings   String variables are used for values that contains character strings. In this …

Read More »

PHP Arrays

An array is a data structure that stores one or more values in a single value. For experienced programmers it is important to note that PHP’s arrays are actually maps …

Read More »

Explode and Implode In PHP

The PHP function explode lets you take a string and blow it up into smaller pieces. For example, if you had a sentence, which contains name of 5 persons, you …

Read More »