Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

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