Write a program in PHP to display "Hello, World !" message.

PHP is an excellent choice for Web programming. It has many advantages
over other languages, including other Web-oriented languages. To get a
very general understanding of how the common Web programming languages
compare, let’s compare them. ASP is Microsoft’s Web programming environment. (It’s not a languageitself because it allows the programmer to choose from a few actual languages,
such as VBScript or JScript.) ASP is simple, but too simple for programs
that use complex logic or algorithms.

Tip:: An algorithm is a formula-like method for accomplishing a particular task. Here’s a simple
example: Some bank accounts use the last four digits of a person’s Social Security
number as his PIN number. An algorithm could be formed to create this PIN number
based on the already-known Social Security number.

<!-- File: hello.php -->
<html>
<head><title>PHP By Example :: Example 1</title></head>
<body bgcolor=”white” text=”black”>
<h4>PHP By Example :: Example 1</h4>
<?php
/* Display a text message */
echo “Hello, world! This is my first PHP program.”;
?>
</body>
</html>


Output:
Hello, world!

0 comments:

Post a Comment

 

About Me

It's Me!Hi, I'm Moinuddin. I'm a Software Engineer at WIPRO working on Microsoft .NET Technology. I'm interested in a wide range of technology topics, mainly Microsoft including Windows Azure, WCF, WPF, Silverlight and any other cool technology that catches the eye.

Site Info

ProjectCSharp.com is mainly about demonstrating real time examples in different technologies like ASP.NET, WCF, WPF, Silverlight, Azure etc..,

Followers

Help Links

Project CSharp (C#) Copyright © 2011. All Rights Reserved.