View Full Version : HTML help. *.txt include


Imprezer
12-11-2002, 04:45 PM
I have a text file that gets auto-updated all the time. I need to "include" that text file into the index.htm in a way that I could format it using the index.htm page format.

How do I do that?

- Alex

StankFootZ
12-12-2002, 01:52 PM
Okay, I have been using ASP for the past few years so I'm kinda spoiled and rusty on other subjects. I'm not sure if this is possible with "straight" HTML. There's two ways I can think of to do it. (Neither of which I have ever really used.)

1.) SSI Server Side Includes. Probably not the best method. Some consider it a security risk and might be a CPU hog. Depends on where you are using it, etc...

Here's an example: http://www.sfrench.org/Tests/index.shtml


2.) Use PHP since we know your server supports it. I have no idea how to do this, but you might be able to find a tutorial online or pickup a PHP book. I know ASP and PHP are pretty similar and doing this in ASP is easy.

Imprezer
12-12-2002, 09:41 PM
Awesome!

I got it to work!

Thanks!

- Alex