Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Tutorials and Tips

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-03-2008, 11:47 AM
Ajof Ajof is offline
Member
 
Join Date: Jun 2008
Posts: 79
Credits: 5,899
Ajof
Send a message via MSN to Ajof
Default Quick php tutorial

Quick php tutorial

HELLO WORLD

1) Open a basic text editor like notepad

2) Insert our php opening and closing tags

PHP Code:
<?php

?>
3) Paste the code below between the tags

PHP Code:
//hello world comment

echo "Hello World!"
4) Save the file as helloworld.php and upload it to a web server with php installed

5) Navigate to the location in your browser

6) You should now see this
Quote:
Hello World!
So what did each part of the script do?

Well the <?php and ?> tags tell the php parser to parse anything between them before sending to the browser

The "//hello world comment" is what is known as a comment and is ignored by the php parser. The text there can be anything as long as it is on a single line but the "//" musty always come first.

The 'echo "Hello World!";' Is a function used to output html to the browser. Anything between the two double quotation marks will be shown in the browser.

And thats the end of that tutorial!
Reply With Quote
 


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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[tutorial] Using Mysidia with x10Hosting! CallumCharlton Tutorials and Tips 0 03-09-2015 12:32 PM
Gradient Map Tutorial Whimsy Art Gallery 0 10-20-2014 03:55 PM
OOP Tutorial request Ruinily Suggestions and Feature Requests 4 02-09-2013 12:42 PM
PHP/MySQL Tutorial HIddenPanda Tutorials and Tips 0 01-27-2011 04:30 PM
Quick help, and I mean QUICK! trollis76 Questions and Supports 4 02-19-2009 09:30 PM


All times are GMT -5. The time now is 07:57 AM.

Currently Active Users: 10546 (0 members and 10546 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636