Home
Credits
Affliates
Link Exchange

HTMLshaman
PHPshaman
LINUXshaman

Helpful Links
Web Design Images
Backgrounds
Icon Sets
GIF Images


Introduction

What better way to start the session with an introduction to what a php file really is and what it isn't.

our many encounters with people who not no knowledge to php gave us an impression that they thought that php is an language that will be used entirely throughout a php file or script.

This assumption is however entirely or to most extents a wrong view of the situation.

PHP is a language built for the WEB environment and that it can be considered the active part of the script whereas HTML will be the static part of it.

Meaning to say, PHP will do things like adding values after a user inputs them and HTML will be used as a base for it to be displayed. And thus for most small scripts, PHP takes up a very small portion of the entire bulit up and HTML takes up the bulk of it.

For example:
<html>
<body>
<?php
$text = "I love Marshmellows";
?>
$text because they are <b>sweet</b> and nice over a roasting fire!<br>
</body>
</html>

This will print "I love Marshmellows because they are sweet and nice over a roasting fire!

As you can see from the above, anything enclosed in the <?php ... ?> is the php coding and in this case we entered a "string" or value into the $text telling it to store the value "I love Marshmellows" and then in the HTML background getting it to display as a normal text.

Therefore, in a .php file, your web server will understand that it anything is not in the <?php ... ?> it will read as basic HTML and anything in it will need to be processed by the already installed PHP engine.






Basics
Introduction
Compilation for Apache

Language Intro
The Basics
Structuring
Script Flow
Functions
Arrays
Objects

Extras
Global values

Simple Scripts
MySQL Query
File Upload
List Contents






Disclaimer:
Contents on this site is provided for educational purposes and will not be distributing source codes from any major commercial reference.
Partial code may be used to provide better understanding of how the program works or functions to illustrate to the reader more clearly.
Other programs that are provided freely on the internet may be placed as a quick solution to the user's needs taking in consideration that it is not altered in any way.

Our Recommended Links
prepaid phone card
Online Casino
Smiley Central
Ventrilo Servers
Counter-Strike Servers
Advertise Here
Advertise Here
Advertise Here
Advertise Here
Advertise Here
phone card

Advertise Here
Advertise Here
Advertise Here
Advertise Here
Advertise Here
Advertise Here
Advertise Here
Hollywood Lyrics
Resident Evil
Contact us at webmaster@galacnet.com for advertising opportunities on GalacNet.