This feels like an extremely n00b question, but here goes...
I have a series of HTML files with a small amount of HTML content inside each (exported from a live system). Its not feasible to change file extensions, as I will not be the person performing this 'export - burn to CD' process when I hand my project over.
Here's a sample page, its extremely basic, it is "01.html":
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="../css/styles.css" />
<title>Introduction</title>
</head>
<body>
<h1 class="chaptertitle">Introduction</h1>
<div>
<p>FBT is imposed on non-cash benefits provided to employees in addition to their normal cash salary. The main categories of fringe benefit for Administrator User are:</p>
<ul>
<li>The private use, or availability for private use, of an employer’s motor vehicles;</li>
</ul>
</div>
</body>
</html>
The files are linked to from a main page, everything works fine in that regard - but I am sure I've seen pages with a .html extension parse PHP syntax, how can I enable/ do this? Currently, I'd thought I could do a search/replace on things like 'Administrator User' in the above example to something like:
<?php echo $CFG->username; ?>
...where that variable is defined and available - but the page is being parsed as HTML. In some ways this isn't a surprise, in some ways it is, as like I say I'm sure I've seen PHP code parsed in a file with a .html extension.
It is running on a Server2Go stack (for burning to CD), but during testing it is running on a WAMP stack. I'm not able to modify much about Server2Go.
Ack! Sorry, to clarify:
everythign inside the <body> tag is pulled out and used in a PHP context, a page named 'generate_book.php' which displays the pulled out contents as the PHP pages' own <body> tag.
Sorry, that was somewhat important :P