Click to See Complete Forum and Search --> : <!--#include scalabilty


adrianfarrell
05-27-2004, 04:16 AM
hi,

I'm using a <!--#include virtual="file.txt" --> statement to populate a page with a value (doesn't matter what it actually is).

It works fine, but my method isn't very scalable as I can only get this to work if the #include gets it's data from a unique file, i.e. I need a seperate file for each value I want to import to the webpage.

Is there anyway to get the #include to read through a singular file that holds a list of data with which to populate the webpage?

thanks in advance,

Ad

David Harrison
05-27-2004, 08:44 AM
Well if you only have SSI support then no, but if you have a server-side language available then yes you could. Do you have a server-side language available?

PeOfEo
05-27-2004, 12:33 PM
Yes, an include only parses the contents of an ascii file, if you want to play with data bases, as lavalamp said, you will need a server side language. Data bases can be mssql server, msde, mysql, oracle, foxpro, access, xml, or a text file. To use a text file like a data base, well its a pain in the butt.