Monday, July 27, 2009

HTML ==> im trying to include another html file or inc file?!?!?

im trying to include another html file or include filr to 1 htm file :


%26lt;!--#include FILE="asd.inc" --%26gt;


%26lt;!--#include FILE="./asd.inc" --%26gt;


%26lt;!--#include FILE=".\asd.inc" --%26gt;


%26lt;!--#include FILE="C:\Inetpub\wwwroot\desktop\asd.inc... --%26gt;


%26lt;!--#include FILE="C:/Inetpub/wwwroot/desktop/asd.inc... --%26gt;


i tried all the code above it didnt work


i also tried to use htm and html file instead of inc


any help???

HTML ==%26gt; im trying to include another html file or inc file?!?!?
Hi there, i'm not sure what you are trying to acheive using the include tag......including is not possible in html like it is in php or most other programming languages





if asd.inc is just a file you want to be shown inside another webpage use this:


%26lt;iframe src="asd.inc"%26gt;%26lt;/iframe%26gt;


make sure that the asd.inc is in the same folder as this file.
Reply:Try using virtual instead:





%26lt;!--# include virtual="asd.inc" --%26gt;





This assumes asd.inc is at the same directory level as the file including it; that is, the web page and the include file are in the same directory.





Also, some Web hosts require you to give files using SSI the file extension .shtm or .shtml.

nil

No comments:

Post a Comment