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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic SSI?

Status
Not open for further replies.

gcastillo

Programmer
Jun 9, 2000
127
MX
Hello
Can I use SSI with a path to a file.txt stored in an Access database? I need to include a text with news in my page, but the path to the text is stored in a database. I have tried using the whole include statement as the path, but it just displays nothing. Please help.
 
In this case, you might consider using the fileSystemObject to read the contents of the file, and then display.

I heard a rumor in here that you could use an if-else block to dynamically include a file, but I still have not been able to get it to work, so the FSO is going to be your sure-fire way of getting it to work.

:)
Paul Prewett
penny.gif
penny.gif
 
I know exactly what you're trying to do...I developed a method of doing just this myself. I didn't use an dynamic SSI, but it's funny...because what I wound up doing was combining your idea of using a text file with link9's method of using VBScript's FileSystemObject to read through it. I write the top {n} stories in my DB to a text file abnd save it on a server as a JavaScript file (.JS).

I then just have clients using our portable headlines reference the file through a single client-side <SCRIPT> statement:

<script language=&quot;JavaScript&quot; src=&quot;
E-mail me at jason@kuam.com and I'll send you the script and documentation. It's too long for this forum. :(
 
Thank you for all your help. I really appreciate it :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top