[advanced search]
Results from the most recent live auction are here.
16 members in the live chat room. Join Chat!
Register Rules & FAQ NP$ Store Active Threads Mark Forums Read
Go Back   NamePros.Com > Design and Development > Programming > CODE
User Name
Password

Old 07-10-2005, 10:19 AM   · #1
PoorDoggie
Soon to be RICHdoggie!
 
PoorDoggie's Avatar
 
Name: Tom
Location: UK
Trader Rating: (36)
Join Date: Jan 2005
Posts: 2,390
NP$: 300.50 (Donate)
PoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nice
TUTORIAL: Starting with PHP

Hello... here is the beginer's tutorial to starting php:

Ok, here is your first script - The, infamous, astounding, excellent Hello World application:

PHP Code:
<?php

echo "Hello, World";

?>


Take a look at that code. Now you need the <?php & ?> tags. They tell your server (as it is a server-side program, which means that the server processes it before sending the output to the users browser) that the page you are trying to access has php that needs to be compiled.

Chances are that you will need to save your script as a php file. Save it as something memorable, so that you can view it first (ie: hello.php). If you are using notepad to write this then you should insert the name (in the save box) with double quotes round it: "hello.php". This will save it as a php file.

Run the program now. The browser should show "Hello, World" in the top left hand corner.

The "echo" command just prints a string of text to the browser. So thats why you see "Hello, World" from "echo "Hello, World";".

Well done, that is your first php script! Hope this helps anyone who wants to start PHP!

Websites to visit: www.webmonkey.com, www.php.net


Please register or log-in into NamePros to hide ads
PoorDoggie is offline   Reply With Quote
Old 07-10-2005, 10:23 AM   · #2
Porte
Template Designer
 
Porte's Avatar
 
Name: Ahmed
Location: Somewhere on earth!
Trader Rating: (29)
Join Date: May 2005
Posts: 3,533
NP$: 17.30 (Donate)
Porte has much to be proud ofPorte has much to be proud ofPorte has much to be proud ofPorte has much to be proud ofPorte has much to be proud ofPorte has much to be proud ofPorte has much to be proud ofPorte has much to be proud ofPorte has much to be proud of
Nice introduction to the Hello World program, and I agree php.net all the way
Porte is offline   Reply With Quote
Old 07-10-2005, 10:35 AM   · #3
PoorDoggie
Soon to be RICHdoggie!
 
PoorDoggie's Avatar
 
Name: Tom
Location: UK
Trader Rating: (36)
Join Date: Jan 2005
Posts: 2,390
NP$: 300.50 (Donate)
PoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nice
thanks - thought I would post it after reading SecondVersion's "hehe" thread!
PoorDoggie is offline   Reply With Quote
Old 07-10-2005, 03:18 PM   · #4
SecondVersion
while ($awake){ code(); }
 
SecondVersion's Avatar
 


Name: Eric
Location: Kentucky
Trader Rating: (140)
Join Date: Mar 2005
Posts: 4,195
NP$: 1660.00 (Donate)
SecondVersion has a reputation beyond reputeSecondVersion has a reputation beyond reputeSecondVersion has a reputation beyond reputeSecondVersion has a reputation beyond reputeSecondVersion has a reputation beyond reputeSecondVersion has a reputation beyond reputeSecondVersion has a reputation beyond reputeSecondVersion has a reputation beyond reputeSecondVersion has a reputation beyond reputeSecondVersion has a reputation beyond reputeSecondVersion has a reputation beyond repute
Member of the Month
MOTM September 2005 Save a Life Child Abuse 9/11/01 :: Never Forget Baby Health Marrow Donor Program AIDS/HIV Breast Cancer Cystic Fibrosis Ethan Allen Fund Animal Cruelty Ethan Allen Fund Ethan Allen Fund Cancer Alzheimer's Protect Our Planet
Originally Posted by PoorDoggie
thanks - thought I would post it after reading SecondVersion's "hehe" thread!


Hey now. What's so wrong with that?
__________________

SecondVersion.com - The Personal Blog of SecondVersion
Domain Name Portfolio - Get your free copy. - Version 1.0.1 now available!!
MetaCreator.com - Free Meta Tag Creator
CodingPlanet.com - Coming soon...
SecondVersion is offline   Reply With Quote
Closed Thread

NamePros is a revenue sharing forum.

Thread Tools

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tutorial: Getting started with PHP (The Basics) deadserious Webmaster Tutorials 60 11-17-2007 11:35 AM
Googlism - What does google think of you? deadserious The Break Room 55 12-15-2005 09:09 AM
New Site New Looks New Unmetered Savings blackicehosting Web Hosting Offers 0 05-29-2005 02:58 PM

Site Sponsors
NameChatter Domain Tasting http://www.mobisitetrader.com/
Advertise your business at NamePros
All times are GMT -7. The time now is 08:31 AM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0