hello world program

avatar December 21, 2011 by: 26

This is basic program that any programmer will start with. Here we deal with various simple statements of PHP.

Getting Started. Open a new project and type the following code. (Note: I’m going to use NetBeans)

<?php
echo “Hello World”;
?>

Here <?php ………?> Specifies PHP code. What ever you want to do you need to write your PHP code in between
<?php…………..?>

Note: PHP code is invisible. After you open the code with your browser, try to view the source you your page. You will not see the code.

Echo is just like printf statement in C, cout statement in C++, print in PYTHON. We can call this as a bit advanced version of those as we are dealing with HTML. echo also allows features for entering HTML tags.

Now run the code by pressing Shift + F6 (Used to run current program file). You can see the page opening as http://localhost/myPHPProject/filename.php and you will see the message “Hello World”

See Next>

HTML Tags in echo

Share this Story
Categories
Php  
Tags
Add a Comment on "hello world program"

    26 Comments on "hello world program"

  1. Very interesting points you have observed , thanks for posting . “A big man is one who makes us feel bigger when we are with him.” by John C. Maxwell.

  2. I’d have to check with you here. Which is not something I usually do! I enjoy reading a post that will make people think. Also, thanks for allowing me to comment!

  3. avatar Deb Timmel says:

    This is a Great Weblog You might find Exciting that individuals Encourage A person.

  4. I have not any expression to appreciate this kind of post…..Truly i’m amazed using this post….the person who produce this kind of publish it had been an incredible individual..thank you for distributed this with us.i discovered this kind of educational along with exciting blog site therefore i feel therefore their very beneficial and knowledge capable.I’d like to thanks for your initiatives you have made in some recoverable format this short article. I’m hoping the identical best product by you later on at the same time. The truth is your creative composing abilities offers influenced us.Really the running a blog is actually dispersing their wings rapidly. The jot down is fine demonstration of the idea

  5. avatar Rich says:

    Webmaster, I am the admin at SEOPlugins.org. We profile SEO Plugins for WordPress blogs for on-site and off-site SEO. I’d like to invite you to check out our recent profile for a pretty amazing plugin which can double or triple traffic for a Worpdress blog. You can delete this comment, I didn’t want to comment on your blog, just wanted to drop you a personal message. Thanks, Rich

  6. Howdy! Would you mind if I share your blog with my zynga group? There’s a lot of folks that I think would really appreciate your content. Please let me know. Thanks

  7. avatar milojko says:

    I have read several good stuff here. Definitely worth bookmarking for revisiting. I surprise how much effort you put to make such a great informative site.

  8. avatar Naughty Nat says:

    “Great, thanks for sharing this article post.Really thank you! Keep writing.”

  9. avatar Kim Booth says:

    I have not checked in here for some time because I thought it was getting boring, but the last several posts are really great quality so I guess I’ll add you back to my everyday bloglist. You deserve it my friend. :)

  10. I appreciate your post, it is interesting and compelling. I stumbled upon my way here through Google, I’ll come back another time :)

  11. Your post sounds fascinating.

  12. avatar Krakow tours says:

    You shown here exceptional write-up i have to confess. Competently shown information in this field, I favour to discover this type of stuff. The class of writing is fine as well as the final result is great.

  13. I appreciate your post, it was interesting and compelling. I have found my way here through Google, I am going to return over again :)

  14. avatar Dorie says:

    Most help atrilces on the web are inaccurate or incoherent. Not this!

  15. I just want to say I am new to blogging and site-building and really savored your blog. Very likely I’m planning to bookmark your blog post . You amazingly have exceptional posts. Regards for sharing with us your web site.

  16. I just added this weblog to my rss reader, great stuff. Cannot get enough!

  17. Really nice guide, thanks.

  18. avatar Ivalene says:

    I love reading these articles beacuse they’re short but informative.

Follow us

About Techdigit

Tech Digit comprises of many authors but the CEO of techdigit is Sriram who is an internet Marketer and Entrepreneur.