Jumat, 03 Januari 2014

PHP Hello World

Before learning php furthermore, the first thing to be done by the php programmers are showing words Hello World on the browser using php programming language

Method 1

   
   <?php
      echo "Hello World";
   ?>
save as hello1.php on your localhost (if you using XAMPP save it on folder xampp/htdocs) now, you can view your script on your browser http://localhost/hello1.php

Method 2

   
   <?php
      $string = "Hello World";
      echo $string;
   ?>
save as hello2.php on your localhost. now, check it out in your browser http://localhost/hello2.php
each method will produce the "Hello World" on browser.

Tidak ada komentar:

Posting Komentar