Welcome to WebmasterWorld Guest from 188.8.131.52 , register , free tools , login , search , subscribe , help , library , announcements , recent posts , open posts Subscribe to WebmasterWorld
Using include files in .htm pages cubix msg:4201760 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 msg:4201864 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:4202266 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 msg:4202873 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.