PHP Programming

Essay by Spence September 2002

download word file, 1 pages 3.0 2 reviews

Downloaded 95 times

Hello, And Welcome To The Wonderful World Of PHP Programming! PHP (Hypertect Preprocessor) Is A Quite Easy Language To Write, After You Get To Know What You Are Doing, Just Like Everything In Life! Here Are Some Simple Scripts To Help To Get You On Your Way To Mastering The Language!

The Following Code Will Display The Word 'hello' On Your Page!

echo"hello";

?>

You May Also Want To Spice This Code Up A Bit With Some HTML(Hypertext Markup Language) For Example:

echo"

Hello, How Are You Doing Today?

Now, On To The Next Thing; Includes And Requires! These Are Words That Will Tell Your Browser To 'include' Another Page, Which Can Be An Advantage If You Are Using Login/Signup On Your Pages! Here Is An Example:

include("index.php")

echo"hello";

?>

Yet Again, You Can Spice It Up With A Little HTML...But You Know How To Do That Right?

**PLEASE NOTE**

NEVER USE "'S IN AN ECHO OR PRINT!!

EXAMPLE:

include("hello.php")

echo"Hello";

?>

The Above One Is Wrong..This Is Right:

include("hello.php")

echo"Hello";

?>

Next, we can use variables. you can assign a number/sentence/letter to a VARIABLE

$greeting="hey whats up you";

this will display 'hey whats up yo' with one simple word, and you can use it in many spots!

there is a quick, yet simple few codes for php. hope you like it!