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
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: <!--#include file="footer.txt" --> Code (markup): or <!--#include virtual="../footer.txt" --> Code (markup): Make sure you do not put in your <head> or <body> tags since these will be pulled from the main page.
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.
Per Running PHP on a html or htm page AddType application/x-httpd-php .html .php .htm Code (markup): 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
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).