Credit Card Debt Consolidation | Loans | Equity Release | MyEeos | Remortgaging
Includes?? [Archive] - ZGeek

PDA

View Full Version : Includes??


macboy
26-10-2005, 06:04 PM
Guys,

I am having some issues getting my includes to work... I am doing a quick site for a friend, but she is not very tech savvy.

I want to do up the templates and then have most of the content come from txt files (or html files) that she can edit them when she wants.

I am trying to get:

<!--#include file="content.txt"-->

to work. It isnt putting the content in when I upload it to the site :(

Have I fucked something up? Got a better suggestion? (I have checked out some CMS, but most are WAY over the top)

Cheers

locust
26-10-2005, 06:08 PM
Sounds like server side includes (SSI) arent enabled for that server/directory/vhost/whatever..

btwong
26-10-2005, 06:23 PM
try using "virtual" instead of "include"

Spingo
26-10-2005, 08:17 PM
locust i sprobably along the right track - check the SSI config of the server. In many cases, simply ensuring that the file has a .shtml extension will do the trick.

macboy
26-10-2005, 10:55 PM
Just needed the .shtml extension and now all is well! Thanks Guys! :)