This is the gist of it:
-
<?php
-
// lets's define some variables
-
-
$title='This page is pretty musical!';
-
-
$content='There are unsmiling faces and bright plastic chains, and a wheel in perpetual motion.';
-
-
$author='The Alan Parsons Project.';
-
// now let's replace variable values in the document
-
?>
-
<html>
-
-
<head>
-
-
<title><?php echo $title?></title>
-
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
-
-
</head>
-
-
<body>
-
-
<div>
-
-
<p><?php echo $content?></p>
-
-
<p>The author of this song is: <?php echo $author?></p>
-
-
</div>
-
</body>
-
</html>
Okay a really powerful ability in PHP (not mentioned here) is the word
With it you can just pop code willy-nilly where and when you need it.
I copied that code from this tutorial:
http://www.devshed.com/c/a/PHP/Build...th-PHP-Part-I/
They get a little fancy with this one.
Some other considerations if youve never used php are,
the file must have a php extension.
You must be running php (its standard on Apache/nix and can be run on Win32 easily).
There are tricks to make working w/ strings easier.
I vote it's about time you learned a scripting language anyway.
:>