Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Including Files

Status
Not open for further replies.

marshalsea

Programmer
May 26, 2000
51
GB
I know this is possible in ASP pages, but wondered if it was possible in standard HTML/DHTML.<br><br>I have a Contents.inc file, which contains links to other pages on my site.<br><br>In ASP I can easily do this via:<br>&lt;!-- #include file=&quot;Contents.inc&quot; --&gt;<br><br>Unfortunately, for me, HTML files do not recognise this, and don't do anything...<br><br>So any ideas chaps and chappesses?? <p>Ben Marshalsea<br><a href=mailto: > </a><br><a href= > </a><br>
 
Dear Ben,<br><br>They are called 'Server Side Includes' <br><br>Change the name of file to .asp <br><br>Good luck<br>-pete
 
Yes it works !!<br><br>Unicorn11<br><a href=mailto:webmaster@tripmedia.com>webmaster@tripmedia.com</a><br><a href= > </a><br>Hi there it all likeminded fellows!!!!!!
 
palbano, changing the filename to .ASP is not a one-time-fix-all solution. It depends on your server. Any browser can understand ASP now, but not all servers will deliver them properly.<br><br>Some servers prefer you to rename the file to .shtml ... Some servers don't allow SSI (many free homepage providers don't allow it, for example). So it really depends on what server you're on; where are you hosting your page? <p>Liam Morley<br><a href=mailto:lmorley@wpi.edu>lmorley@wpi.edu</a><br><a href=] :: imotic :: website :: [</a><br>"light the deep, and bring silence to the world.<br>
light the world, and bring depth to the silence.
 
NO WAY! Server side solutions are server dependant! Man why didn't someone tell me?<br><br>;o)<br><br>-pete
 
Yeah it helps to rename it to .shtml, or .stm.<br><br>Either of the two will work.<br><br><br>-Vic
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top