Suscriber with us



Receive HTML?

Syndicate

PDF Print E-mail

PHP Quick Start 

 

If you are new to PHP and wonder what the heck is PHP this section PHP Quick Start (PHP tutorials) is for you!

 

Introduction to PHP

 

Both ASP and PHP are languages used to build Dynamic Web sites that can interact with Databases and exchange information. ASP (Active Server Pages) is from Microsoft and is used with IIS (Internet Information Server) that runs on Microsoft Servers. PHP (PHP: Hypertext Preprocessor) is from Rasmus Lerdorf, who originally designed this parsing language which was later modified by different people. It runs on Unix and Linux servers and it also has an NT server version.

Installation of PHP 

Here we will be showing you how to install PHP / IIS web-server, and how to configure your web server to work with PHP.

PHP Syntax

A PHP scripting block always starts with <?php and ends with ?>. A PHP scripting block can be located anywhere in the document. On servers with shorthand support enabled you can start a scripting block with <? and end with ?>.
If you have never had any programming, Algebra, or scripting experience, then the impression of variables might be a new concept to you.

Variables are used for storing values, such as numbers, strings or function results, so that they can be used many times in a script.

PHP String

Working with strings is done very often for the web, and PHP is probably one of the best programming languages for manipulating strings :-) I guarante that there are a function or combination of string functions for Anything you ever need.

PHP Operators

An operator is something that you feed with one or more values which yields another value (so that the construction itself becomes an expression). So you can think of functions or constructions that return a value (like print) as operators and those that return nothing (like echo) as any other thing.

PHP If....Else

PHP IF statement is popular and is used to check some conditions and accordingly statements are executed. We can control the html display part also by the IF STATEMENT.

PHP Switch

The switch statement is similar to a series of IF statements on the same expression. In many occasions, you may want to compare the same variable (or expression) with many different values, and execute a different piece of code depending on which value it equals to. This is exactly what the switch statement is for.

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.

PHP Looping

A FOR loop is very similar to a WHILE loop in that it continues to process a block of code until a statement becomes false, however everything is defined in a single line.

PHP Functions

A function is just a name we give to a block of code that can be executed whenever we need it. This might not seem like that big of an idea, but believe me, when you understand and use functions you will be able to save a ton of time and write code that is much more readable!

PHP Forms

PHP Forms is an all-in-one web based form builder that allows you to create online forms, validate and collect data fast and with minimum effort. Web forms are easily integrated into your website: just insert the php form code or html form code into your page.

PHP $_GET

The $_GET variable is an array of variable names and values sent by the HTTP GET method. The $_GET variable is used to collect values from a form with method="get". Information sent from a form with the GET method is visible to everyone and it has limits on the amount of information to send.

PHP $_POST

The $_POST variable is an array of variable names and values sent by the HTTP POST method. The $_POST variable is used to collect values from a form with method="post". Information sent from a form with the POST method is invisible to others and has no limits on the amount of information to send.





Digg!Del.icio.us!Google!Live!Facebook!Slashdot!Technorati!StumbleUpon!Newsvine!Yahoo!Free social bookmarking plugins and extensions for Joomla! websites!
Last Updated ( Monday, 28 April 2008 )
 
Next >

Download Utility

XAMPP
WAMP
EditPlus
Zend Studio

Polls

Which is the best Scripting language?