Include file=footer.inc in html is possible?

Friends<br />
<br />
I try to include the .inc file in my .html file but its not working.<br />
i gone thru some threads here.<br />
All are telling to use .shtml, .shtm or asp.<br />
is it possible to use in .html file.<br />
if yes, kindly tell me the procedure for that.<br />
someone is telling about SSI.<br />
what is SSI? if i enables SSI then, can i include the .inc in the .html file?<br />
<br />
thanks<br />
sudhakar<!--content-->pal<br />
<br />
my doubt is<br />
can i include the .inc in html?<br />
if yes, how can i?<br />
<br />
thanks<!--content-->I've been told by a certain server administrator (and only once I asked why my includes suddenly stopped working) that with the Apache server <!--#include file="filename.ext" --> has been depricated for security reasons and in favor of <!--#include virtual="filename.ext" --> And the nifty thing about the second one is that you can include the output from scripts. for Apache SSI details see <!-- m --><a class="postlink" href="http://httpd.apache.org/docs/mod/mod_include.html">http://httpd.apache.org/docs/mod/mod_include.html</a><!-- m -->. posted by sathysudha <br />
pal<br />
<br />
my doubt is<br />
can i include the .inc in html?<br />
if yes, how can i?<br />
<br />
thanks It has to be done at the server and there are lots of ways but they depend upon the server. What server are you using and what scripting do you have available? SSI, Perl PHP, XSLT?<!--content-->Im in Windows<br />
<br />
IIS 5.0<br />
ASP<br />
VbScript<br />
<br />
Can i include the .inc file in .html file?<!--content-->This is the one im having in footer.inc<br />
<br />
<table cellspacing="0" cellpadding="3" border="0" width="100%" style="border-top: 1px #000 solid;"><br />
<tr> <br />
<td align="center" bgcolor="#b9d8e2"> <br />
<p> <br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"">Copyright &copy; Nahil <br />
Computers</a> <br><br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"home.html">Home</a> | <br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"about.html" >About us</a> <br />
| <a href=http://www.webdeveloper.com/forum/archive/index.php/"partners.html" >Partners</a>| <br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"jobs.html" >Jobs</a> | <br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"feedback.html" >Feedback</a> | <br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"contact.html" >Contact us</a> <br />
</p><br />
</td><br />
</tr><br />
</table><br />
<br />
so how can i include this one in all the page as footer.inc<!--content-->see im having some 10 or 15 .html pages.<br />
in all the pages i have to include the footer.inc<br />
so i have to change all my .html to .shtm or shtml?<br />
by the way, whats the diff bet. html and shtml?<!--content-->so nothing will happen is it?<br />
can i proceed in converting the .html to .shtm or .shtml?<!--content-->ok<br />
<br />
Thanks for your kind help with patience<!--content-->If you don't wish to rename all the extensions, and change all the page links, and form actions, etc., and your server is Apache then you can create a .htaccess configuration file with the followingAddHandler server-parsed .shtml .shtm .html .htm<!--content-->Originally posted by jeffmott <br />
If you don't wish to rename all the extensions, and change all the page links, and form actions, etc., and your server is Apache then you can create a .htaccess configuration file with the followingAddHandler server-parsed .shtml .shtm .html .htm But see <!-- m --><a class="postlink" href="http://httpd.apache.org/docs/howto/ssi.html#configuringyourservertopermitssi">http://httpd.apache.org/docs/howto/ssi. ... opermitssi</a><!-- m --> for why you shouldn't let the server parse .html and .htm files and why you should use the XBitHack directive instead.<!--content-->Apache<br />
You'll occasionally see people recommending that you just tell Apache to parse all .html files for SSI, so that you don't have to mess with .shtml file names. These folks have perhaps not heard about XBitHack....and they were right. :)<br />
thanks for the correction.<br />
<br />
the only downfall...Apache<br />
Of course, on Windows, there is no such thing as an execute bit to set, so that limits your options a little.but since the majority of servers are unix based, this won't be a common problem.<!--content-->
 
Back
Top