I believe I can be of some assistance here. Now, I'm taking this as a need to include the same text on almost 200 HTML pages without going in and doing it by hand. Much like taekwondokid42 suggested, this is where we cue PHP.
In a new file ('mass_edit.php' -- just a suggestion for the name, though):
PHP Code:
<?
$directory = 'data'; // THE NAME OF THE FOLDER THAT CONTAINS ALL OF THOSE PAGES GOES HERE
$dir_hand = opendir($directory); // CREATE DIRECTORY HANDLE
while (($file = readdir($dir_hand)) !== false) // LOOP THROUGH ALL FILES
{
$ext = substr($file, strpos($file, '.') + 1, strlen($file) - strpos($file, '.') - 1); // DETERMINE EXTENSION
$valid_ext = array('php', 'html', 'shtml', 'htm'); // DECLARE EXTENSIONS THAT SHOULD BE MODIFIED
if (in_array($ext, $valid_ext)) // TEST IF EXTENSION IS VALID
{
$old_data = file_get_contents($directory . '/' . $file); // OLD DATA OF THE FILE
$file_hand = fopen($directory . '/' . $file, 'w'); // CREATE FILE HANDLE
fwrite($file_hand, file_get_contents('to_include.php') . $old_data); // PLACE CONTENTS OF "to_include.php" AT THE BEGINNING
}
}
?>
Then, just throw the HTML that you'd like to be placed at the beginning of each page in a new file called to_include.php and run mass_edit.php. Remember, though, that this script is going to take all of the contents of that file and throw it at the very beginning of every single valid (extension-wise) file in the folder you specify.
Because I don't know how your HTML pages are structured, I couldn't do anything else with this. If, however, you'd like to send me the source code of one of those pages, I can modify this so that it better suits your needs. Hope I've helped...