Is there a software or script that will insert whatever you want in hundreds of webpages without having to manually edit them all?
Use sed (stream editor). It's a command line tool that comes with all flavors of Linux and you can find one for Windows. sed can insert text after a certain pattern, as well as it can delete and modify pattern-matching text. J.D.
Sounds like SED id your best bet. While you're changing it, you might as well take out the ending HTML tags </body></html> or whatever and replace it with a common PHP footer file that you can edit in the future: <? include "footer.php"; ?> - Where the footer file contains the end of your HTML docs. Good luck. --Mark
Unless you tell Apache or whatever you are using to treat HTML files as PHP files.... that won't work
What I find so interesting is that most everyone here automatically assumes that the webserver is linux and apache with php without any hesitation. I would think that from the number of posts about asp, asp.net and cold fusion for the coop, that such a myopic generalization would not be so rampant.
PHP runs on Windows, also. Most hosting account come with PHP... Sorry if I was a little vague, yeah you'd have to have .php files or force .htm files to go through PHP, I'm sure you could do the same thing with ASP or JSP also, but I'm only familiar with php... my point was to create a way to change your footer again in the future if you need to. --Mark
EditPad is a great win based product for editing in bulk. The "lite" version is free, and on download.com.
There are a number of free-ware text search and replace programs out there. Work over multiple files/directories. Search on Google or Downloads.com.