The following will be printed using the echo statement.
Hi! This is my first PHP script.
See how easy that was?
Now on to the next parts of the lesson, if they will only be as easy! lol!
The reason the code is able to be viewed is due to a function called show_source. Pretty interesting function!
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>php first try</title>
<meta http-equiv="Content-type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="Content-Language" content="en-us" />
<link rel="stylesheet" href="styles/phptry.css" type="text/css" />
</head>
<body>
<div id="wrapper"><!--open wrapper div-->
<div id="header"><!--open header div-->
<!--close header div--></div>
<div id="navheader"><!--open header navigation-->
<!--close header navigation--></div>
<h1>My First PHP Script</h1>
<p>The following will be printed using the echo statement.</p>
<?
echo "<p>Hi! This is my first PHP script.</p>";
//this will print out the above sentence in html and this is a php comment.
?>
<p>See how easy that was?</p>
<p>Now on to the next parts of the lesson, if they will only be as easy! lol!</p>
<p>The reason the code is able to be viewed is due to a function called show_source.
Pretty interesting function!</p>
<div id="source"><!--open source code div-->
<h1>Source Code</h1>
<code>
<?
show_source("myfirst.php");
?>
</code>
<!--close source code div--></div>
<div id="footer"><!--open footer div-->
Copyright © Debbie Riendeau and its licensor's. All rights reserved
<!--close footer div--></div>
<!--close wrapper div--></div>
</body>
</html>