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