05, 09 2010, 07:19:43 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register Weztec home  
Pages: [1]   Go Down
  Print  
Author Topic: PHP: First Script -> Hello World  (Read 3821 times)
0 Members and 1 Guest are viewing this topic.
Weztec Support Team
Administrator
Newbie
*****
Offline Offline

Posts: 38



View Profile
« on: 18, 02 2007, 10:19:14 PM »


All php scripts have an opening tag <?php and a closing tag ?> all of your php script / code goes between these tags.

We will use echo to output our string "Hello World" all strings are surrounded by quotation marks " .

The semicolon ; at the end of the line signifies that we have finished with this line and wish to move on to the next.

Code:
<?php

echo "Hello World";

?>


Welcome to the very powerful world of PHP.

Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.8 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.371 seconds with 18 queries.