I have a really complex header, is there a way to save all the header to 1 file, then link to that file?
Printable View
I have a really complex header, is there a way to save all the header to 1 file, then link to that file?
Well, depending on where the file that you are including is licated, you can use one of the following options:
For files located in the same, or a sub directory:
For files located in another directory or the root directory:Code:<!--#include file="whatever.inc"-->
Note: the extension that i used above "inc" just stands for include. You can use anything as long it is text based. For example, all of these would be valid extensions: *.asp, *.php, *.txt etc......Code:<!---#incude virtual="somedirectory/whatever.inc"-->
Hope this helps! ;)
There is also a javascript method, for including javascript functions:
This one needs to have a .js extension as far as i know...;)Code:<script language="javascript" src="functions.js"></script>