View Full Version : Pointers in HTML?
Feb 20, 2004, 04:02 PM
What I want to do is make a few lines of code show up on hundreds of html files, maybe a thousand.
Instead of wiring the code in each html file, i want to just write a one word pointer to the code which resides in a different file. can i do this? just tell me what to look for, i will then look it up. you don;t have to explain it if you don't want.
Feb 20, 2004, 04:33 PM
Well, if you are on a Unix system, you could use sed to stream through all of the HTML files and change the word to something else. You could change thousands of files in a few seconds.
As for doing it via a script or something, I'm not sure how that would be done.
Feb 20, 2004, 04:51 PM
i can already do that in bbedit, but i want no updating required for 1,000+ files.
Feb 20, 2004, 07:01 PM
if the server thats delivering the pages supports server side includes you can just use an include statement.
<-- #include filename //-->
Feb 20, 2004, 07:18 PM
thanks, i'll give it a try
Feb 20, 2004, 09:58 PM