homepage Welcome to WebmasterWorld Guest from 54.145.238.55
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
Using include files in .htm pages
cubix



 
Msg#: 4201758 posted 7:04 pm on Sep 14, 2010 (gmt 0)

Hi there,

I was just wondering if anyone could advise of any server modifications I need to make in order to use .inc files in my HTML pages. If this is not possible, I would be ever so grateful if anyone could suggest an alternative method that achieves the same results as using include files in .htm pages.

Thanks in advance for your help.

Cubix

 

Dijkgraaf

WebmasterWorld Senior Member 5+ Year Member



 
Msg#: 4201758 posted 11:40 pm on Sep 14, 2010 (gmt 0)

For starters you need to tell us what sort of web server you are using.

cubix



 
Msg#: 4201758 posted 4:57 pm on Sep 15, 2010 (gmt 0)

Hi Dijkgraaf,

My site is hosted on a Linux server. If you need any further info, please let me know.

Thanks for your help,

Cubix

rocknbil

WebmasterWorld Senior Member rocknbil us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4201758 posted 4:49 pm on Sep 16, 2010 (gmt 0)

in order to use .inc files in my HTML pages.


If an include is all you need, you should be able to use SSI, this is what it's for. Server Side Includes usually require an .shtml extension to tell the server to parse the file for directives.

If you don't want to rename the extensions, you can add a handler to tell the server to parse .htm and .html files as SSI.

The second way is to use PHP and include the files via PHP includes. PHP is a robust programming language and IMO is overkill for simple includes.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved