XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old July 23rd, 2002, 08:17 PM
waxixi waxixi is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Posts: 16 waxixi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 21 m 31 sec
Reputation Power: 0
Unhappy Adding "header" & "footer" to html files?

I have a lot of html files which are saved from *.doc using Microsoft Word. Then I need to add uniform "header" and "footer" to all of them, I mean, do it in a batch. A friend told me that he did it with AppleScript on Mac. He made separate *.txt files for the "header" and "footer" and then use script to add them onto the files. Is there any tool for PC to do that?
Many thanks.

Reply With Quote
  #2  
Old July 28th, 2002, 02:00 AM
jough jough is offline
El Guapo
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Location: You have moved into a dark place. It is pitch black. You are likely to be eaten by a grue.
Posts: 56 jough User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 7 m 47 sec
Reputation Power: 7
Not really an XML question, but okay...

The best way to add a header or a footer would be with some sort of server-side include. You could use a text-editor like UltraEdit or a hardcore WYSIWYG HTML editor like Dreamweaver to prepend and append your headers and footers, but you're going to run into problems when you need to change anything in them.

The best way to handle this is to make *one* header file and *one* footer file and then include them in your pages using SSI or PHP (or whatever scripting language is in fashion these days).

What's your server environment like?

-- Jough
__________________
See my PHP in action:
Poetry Archives

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > Adding "header" & "footer" to html files?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway