• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

PHP Tutorial

Custom Title Activated
Loyal Member
Joined
Sep 7, 2004
Messages
1,886
Reaction score
5
This Tutorial Is aimed for beginners in the PHP area.

Introduction Tutorial on PHP..

Firstly PHP stands for Hypertext Preprocessor.. It is an open source,interpretive,cross platform,HTML embedded, Server side language which lets you create dynamic Web Pages. Because PHP is A Server Side language it is executed on a server so the viewer cannot see the code.

To understand PHP you got to learn the basics.

Now PHP always starts with the <?php tag and ends with ?>

Those two tags Have to go at the top and bottom of the script in order for it to work...

Also the semicolon ";" is a seperator and is used to determine one set of instructions from the other.

This simple code is a perfect example...

<?php
echo "Hello World";
?>

This simple code just Outputs on your Page Hello World.

Another Topic I will be explaining Here is Variables..

All Variables in PHP start with the "$" symbol. variables can consist of numbers, arrays and strings.

The code Below will show you that I have attached the String "I am Ali" to a variable called $hi.

<?php
$hi = "I am Ali";
echo $hi;
?>

This code will Output on your screen "I am Ali".

Now if you want to integrate two,three or more variables all you got to use is the "." operator...

The code below will will show you that I have a $hi and $hi1 variable both being attached to strings and being outputed by the "." operator.

<?php
$hi = "I am Ali";
$hi1 = "1234";
echo $hi1 ."". $hi1 ;
?>

This script will output on your screen I am Ali1234.

This is my First ever Tutorial in PHP so I hope you like it and Soon I will make more on PHP..

By Hybr!d
 
Divine Celestial
Loyal Member
Joined
Nov 11, 2004
Messages
810
Reaction score
0
Nice tut. I bet this will help those beginners out alot.

[N]asser` ~ Out
 
Banned
Banned
Joined
Apr 30, 2003
Messages
348
Reaction score
1
I want to add something:

Originally PHP stands for "Personal Home Page" ^^

anyway, nice tutorial :p
 
Divine Celestial
Loyal Member
Joined
Nov 11, 2004
Messages
810
Reaction score
0
Yea, that's what I thought too :s

[N]asser` ~ Out
 
Custom Title Activated
Loyal Member
Joined
Sep 7, 2004
Messages
1,886
Reaction score
5
Yeh nightwolfz it used to stand for that.
 
Back
Top