First Program: Hello World


  • Text Editor: Notepad++ (Recommended)
  • Browser: Chrome, Mozilla, or Internet Explorer

Write a program that will print “Hello World” in php (without the qoutes).

1. Open up Notepad++
2. Enter the source code below and save as “helloworld.php” inside your root directory, example, C:/xampp/htdocs/

echo "Hello World";

3. Open up your browser and visit this address – http://localhost/ or simply click the link.

4. It should display “Hello World” (without the qoutes) in your browser.

Congratulations! You have successfully run a simple php program. We will have more of these in our future discussions.

Thank you.

This entry was posted in PHP Beginners Course, PHP Tutorial and tagged , . Bookmark the permalink.

3 Responses to First Program: Hello World

  1. This is all very new to me and this article really opened my eyes.Thanks for sharing with us your wisdom.Maryam Lofgreen

  2. Thanks for that awesome posting. It saved MUCH time 🙂

  3. This post appears to recieve a great deal of visitors. How do you get traffic to it? It offers a nice unique twist on things. I guess having something real or substantial to post about is the most important factor.

Comments are closed.