Hai
I want to include an html page with in another html page. So I used the following code
<!--#include file="footer.html" -->
But it’s not working.
I am using Linux server. Is there is any other way to do this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To use that syntax you must enable SSI and configure your server to process your files for it (by default, if SSI is turned on, most servers will only look for SSI directives in files ending in
.shtml).If you want to do this in HTML, then your only real option is frames, which have lots of drawbacks.
You may be better off using a template language. I like Template-Toolkit which you can use on the server (with Perl) or run offline (e.g. with the ttree utility).