Server-Side Include

I am currently doing a server-side include with text files and I was wandering if there was a way I could use some javascript so that I could include in the webpage that would allow the server-side include to randomly select one of the text files.

Would there be a way to insert wildcard characters in the javascript so that it would select the number at ramdom. So that it would be able to select the number of the file, as I have named them “quote001, quote002, …” Curiosity will kill this cat in the end, but I do not care.

You can’t use javascript to do that. Server-side includes, as the name implies, are processed by the server BEFORE the page loads to the user’s browser. JavaScript is processed by the browser AFTER the page loads. So, by the time the JavaScript gets executed it’s too late to process the SSI.