Page is a not externally linkable
thecoalman - 2:23 pm on Jan 14, 2010 (gmt 0)
Assuming your server supports SSI, php or some other server side scripting language you might as well move on from static HTML pages. One basic function in php is the include. Simple example using PHP: <?php include($_SERVER['DOCUMENT_ROOT'] . '/somefolder/header.php'); ?> <p>Some content</p> <?php include($_SERVER['DOCUMENT_ROOT'] . '/somefolder/footer.php'); ?> </body> Lots of benefits. Firstly you're no longer relying on JS, the browser is sent plain HTML. You'll want to either redirect your old HTML pages to the new ones if you switch to the .php extension. You could also have the server parse HTML files as PHP
3. Is there any way to edit the actual text of multiple files at once? For example, I have old pages that I wrote before I knew how to use javascript includes. I want to tweak the common layout a little, and while doing so, make them all just point to the same javascript file so I won't have to do this in the future
<html>
<head>
</head>
<body>
</html>