Digital Point Forums
San Diego Personal Trainer

Go Back   Digital Point Forums > Design & Development > HTML & Website Design
Google Analytics
Log In to view
your analytics

Reply
 
Thread Tools
  #1  
Old May 8th 2005, 3:34 am
westhaven's Avatar
westhaven westhaven is offline
Starcaller
 
Join Date: Apr 2005
Posts: 3,884
westhaven has a brilliant futurewesthaven has a brilliant futurewesthaven has a brilliant futurewesthaven has a brilliant futurewesthaven has a brilliant futurewesthaven has a brilliant futurewesthaven has a brilliant futurewesthaven has a brilliant futurewesthaven has a brilliant futurewesthaven has a brilliant futurewesthaven has a brilliant future
wanna include footer.txt in html

wanna include footer.txt in html pages
i don know the exact syntax it was like <#include...i don remember it
can anyone tell me the exact syntax for it
__________________
Business Software Management | Need a Link builder?? "Since 2005"
Reply With Quote
  #2  
Old May 8th 2005, 6:23 am
Corey Bryant's Avatar
Corey Bryant Corey Bryant is offline
Texan at Heart
 
Join Date: Feb 2005
Location: Castle Pines North, CO
Posts: 1,087
Corey Bryant has a spectacular aura aboutCorey Bryant has a spectacular aura about
You cannot include other files into HTML pages. They have tp be parsed and the correct way to parse them is renaming them to SHTM or SHTML. If you are on a *NIX server, you can tell the server to parse all HTML pages, but this puts un-do load on your servers.

The code could be:
Code:
<!--#include file="footer.txt" -->
or
Code:
<!--#include virtual="../footer.txt" -->
Make sure you do not put in your <head> or <body> tags since these will be pulled from the main page.
__________________
Corey
Merchant Accounts | My Merchant Account Blog
|
Reply With Quote
  #3  
Old May 8th 2005, 7:06 am
NewComputer's Avatar
NewComputer NewComputer is offline
of the Nightfall
 
Join Date: May 2004
Location: Canada
Posts: 1,992
NewComputer will become famous soon enoughNewComputer will become famous soon enough
Why not just use php and include the text?
Reply With Quote
  #4  
Old May 8th 2005, 7:43 am
honey's Avatar
honey honey is offline
@@ I am Buying Blog Posts
 
Join Date: Feb 2005
Location: I List at www.Trend-Watch.com
Posts: 15,228
honey has a reputation beyond reputehoney has a reputation beyond reputehoney has a reputation beyond reputehoney has a reputation beyond reputehoney has a reputation beyond reputehoney has a reputation beyond reputehoney has a reputation beyond reputehoney has a reputation beyond reputehoney has a reputation beyond reputehoney has a reputation beyond reputehoney has a reputation beyond repute
yes, include as PHP, and set in your .htaccess the document type for HTM and HTML to be PHP, so that all HTML files are parsed as php documents.
Reply With Quote
  #5  
Old May 8th 2005, 7:22 pm
NewComputer's Avatar
NewComputer NewComputer is offline
of the Nightfall
 
Join Date: May 2004
Location: Canada
Posts: 1,992
NewComputer will become famous soon enoughNewComputer will become famous soon enough
honey,

can you provide the .htaccess code necessary to do that?
Reply With Quote
  #6  
Old May 8th 2005, 8:27 pm
Corey Bryant's Avatar
Corey Bryant Corey Bryant is offline
Texan at Heart
 
Join Date: Feb 2005
Location: Castle Pines North, CO
Posts: 1,087
Corey Bryant has a spectacular aura aboutCorey Bryant has a spectacular aura about
Per Running PHP on a html or htm page
Code:
AddType application/x-httpd-php .html .php .htm
But I still do not recommend this as it can slow your site & increase the load on the server. I only work on Windows - but you might have to restart Apache as well for this to take effect
__________________
Corey
Merchant Accounts | My Merchant Account Blog
|
Reply With Quote
  #7  
Old Jul 11th 2008, 2:42 am
cyberman2046 cyberman2046 is offline
Peon
 
Join Date: Jul 2008
Posts: 1
cyberman2046 is on a distinguished road
Include footer.text in html

Assume this file is index.htm:


<td class="footercenter" width="800" height="78">
<!--webbot bot="Include" u-include="include_footer.htm" tag="BODY" startspan -->

<a href='index.htm'><font face='Arial Unicode MS'>Home </font></a>

(content of include_footer.htm file)

<!--webbot bot="Include" i-checksum="57741" endspan --></td>


Remarks: Use Frontpage to edit file include_footer.htm. And then open index.htm in Frontpage environment and it should already updated with the changes made in include_footer.htm(if any). Now just save index.htm.
ftp both files to a web server. If you have many pages using this footer info, now you can just update the footer file instead of saving all the trouble to update each file(which has the footer info written in the conventional way).
Reply With Quote
Reply

Bookmarks

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML Invoice shows HTML markup davet Bugs 7 Mar 14th 2009 5:06 am
Weird HTML email problem crazyhorse Site & Server Administration 15 Nov 1st 2005 4:07 am
Do SEs love html extension ? Tuning Site & Server Administration 2 Apr 11th 2005 10:35 pm
html editors, advice? Christopher All Other Tools 8 Mar 25th 2005 10:25 pm
Ad PHP script executes in HTML page, outputs nothing tigertom Setup / Validation Help 12 Mar 20th 2005 2:23 pm


All times are GMT -8. The time now is 3:54 pm.