Week One PHP

Solitude

8:52:18 pm, Friday, November 21, 2008

My first php scripts

A simple echo command to show on the screen

And here with print to show on the screen

My name is Anita Bonita

Short tag name: Anita Bonita


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="phpwk1.css" rel="stylesheet" type="text/css" />
<title>PHP Intro Week 1</title>
</head>
<body>

<h1 id="head">Week One PHP</h1>
<?php
// include Content
include ("content.inc");
?>
<p class="center"><?php 
echo date("g:i:s a, l, F j, Y ");
?></p>

<div id="box">
<h2>My first php scripts</h2>

<?php
// This will print on da screen
echo "<p>A simple echo command to show on the screen</p>"
?>

<?php
// This will print on da screen too
print "<p>And here with print to show on the screen</p>"
?>

<?php
// Name variable
$name "Anita Bonita";
// Print it
print "<p>My name is $name</p>";
?>

<p>Short tag name: <?=$name?></p>

</div>

<div id="foot"><p class="center">Anita Scripter &copy; 2007 - All Rights Reserved</p></div>
<hr />
<p class="source"><?php show_source("week1.php"); ?></p>

</body>
</html>