Lost Password?


  #1 (permalink)  
Old 01-04-2007, 12:04 AM
clookid's Avatar   
clookid clookid is offline
Programmer
 
Join Date: Jan 2007
Posts: 148
Rep Power: 7
clookid is on a distinguished road
Default PHP Introduction

PHP Introduction

Welcome to the PHP Introduction by Clookid!

After reading this tutorial you will know:
  • how to start a PHP document.
  • what PHP stands for.
  • what PHP actually is.
  • the echo function.
  • how to end a PHP document.
  • how to embed a PHP document into an HTML document.
Before starting this tutorial you should know:
  • basic HTML.
  • basic XHTML.
PHP stands for Hypertext Preprocessor and is used for web scripting.
First of all I am going to introduce an example and tell you what the output is; I will secondly tell you what each line does and then close off this tutorial.

Here is the example:

Example 1-1:

Code:
<?php
    echo "Hello, I am an echo function!";
?>
The above example will output the following:
Hello, I am an echo function!

Make sure that you don't think that PHP is the next generation of Maths or whatever subject you struggle with, because really it isn't. It is so easy but gradually gets a little bit harder.
Also here's another thing, don't think of PHP as a big scary language, just think of it as HTML with some really helpful functions.

Line 1:
<?php is just introducing you to the PHP document, simple!

Line 2:
This here is the echo function, to write one of your own just replace the text surrounded by quotes, don't forget the semicolon though!

Line 3:
?> is just closing off your PHP document.

Here is that exact same example again except this time it is embedded into an HTML document:

Example 1-2:

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>Echo Function</title>
  </head>
  <body>
<?php
    echo "Hello, I am an echo funtion!";
?>
  </body>
</html>
Make sure that you do not get mixed up with HTML when doing PHP.
Eg. do not use <?php> or <php> when starting off your document.

Thank you for reading this tutorial, make sure you start memorising the functions that I taught you in this guide.

You must have authors permission to use this tutorial!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 01-04-2007, 03:03 AM
AfTriX AfTriX is offline
Programming God
 
Join Date: Jan 2007
Location: Sri Lanka
Posts: 596
Rep Power: 0
AfTriX is an unknown quantity at this point
Default

Nice Introduction.. very simple intro it seems..
where you got it mate?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-04-2007, 03:05 AM
clookid's Avatar   
clookid clookid is offline
Programmer
 
Join Date: Jan 2007
Posts: 148
Rep Power: 7
clookid is on a distinguished road
Default

I wrote it... I wouldn't have posted it if I didn't!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-04-2007, 03:16 AM
AfTriX AfTriX is offline
Programming God
 
Join Date: Jan 2007
Location: Sri Lanka
Posts: 596
Rep Power: 0
AfTriX is an unknown quantity at this point
Default

Hey I just asked.. Seems you got upset of my reply.
I'm sorry if i was hurt you ok.

And I used to search through the net and post useful things for the forum members....
.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-04-2007, 04:33 AM
clookid's Avatar   
clookid clookid is offline
Programmer
 
Join Date: Jan 2007
Posts: 148
Rep Power: 7
clookid is on a distinguished road
Default

I wasn't angry... God, I should know better than to post sarcasm over the internet!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #6 (permalink)  
Old 01-04-2007, 06:01 AM
AfTriX AfTriX is offline
Programming God
 
Join Date: Jan 2007
Location: Sri Lanka
Posts: 596
Rep Power: 0
AfTriX is an unknown quantity at this point
Default

“Let the bucket of memory down into the well,
bring it up. Cool, cool minutes. No one
stirring, no plans. Just being there.”
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-05-2007, 07:39 AM
Ace Ace is offline
Newbie
 
Join Date: Jan 2007
Posts: 15
Rep Power: 7
Ace is on a distinguished road
Default

DUDE , quotes :YUK:
Well nice intro and all , i like it!
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-08-2007, 03:08 AM
xtraze xtraze is offline
Programming God
 
Join Date: Dec 2006
Location: Sri lanka
Posts: 921
Rep Power: 0
xtraze is on a distinguished road
Send a message via MSN to xtraze Send a message via Skype™ to xtraze
Default

I like it too. And if you write it yourself, you are good.
(( Still not excellent ))
Keep it going on and make some more, maybe you can write some e-books yourself, I'm working on some.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 01-10-2007, 12:07 AM
AfTriX AfTriX is offline
Programming God
 
Join Date: Jan 2007
Location: Sri Lanka
Posts: 596
Rep Power: 0
AfTriX is an unknown quantity at this point
Default

WOW!!..

We are to get some awesome E-Book from CodeCall Programming Expert!..

Don't forget to give us a thread about your Book buddy!!..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 01-14-2007, 03:59 PM
clookid's Avatar   
clookid clookid is offline
Programmer
 
Join Date: Jan 2007
Posts: 148
Rep Power: 7
clookid is on a distinguished road
Default

I am not exactly an expert at PHP, I only know the echo function and variables!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP 4 end of life announcement Jordan Programming News 4 08-30-2007 10:55 AM


All times are GMT -5. The time now is 05:43 AM.

Contest Stats

WingedPanther ........ 2753.6
Xav ........ 2704
Brandon W ........ 1702.32
John ........ 1207.73
marwex89 ........ 1175.24
morefood2001 ........ 966.05
dcs ........ 655.75
Steve.L ........ 475.59
orjan ........ 418.58
Aereshaa ........ 383.54

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 97%

Ads