I want be able to keep my URLs clean of dynamic symbols like the question mark and & symbol. But I want to use a script to rotate a number of substitute paragraphs to keep the site alive. One idea is to have a number of included files which are static. Then a script selects the include on a rotaional basis whenever the script is run by scheduled tasks. What is the best way to go about this? What language is good?
It appears that in this case. PHP is your best bet.
You know you could also use php to dynamically generate the page on a scheduled basis as well. Have a script rebuild the entire page instead of a bunch of little include files.
Sort of like the way most blogging scripts work these days. You write the blog, it stores the data, then writes it to an html file as a static page so that your page isn't querying the database everytime it is loaded.
well, php comes with many hosting packages and runs on both unix and windows, and you can set it up to run how you want.
Setup is pretty easy, and you wont need to have a DB to do what he said, you'll just need to set a cron job (unless the files you want to rebuild read info from a database....
Anyways, http://www.php.net , VERY good resources.
well if you put it like that, forget about what everyone said... just use mason. it's perl based. amazon.com uses it apparently too. will give you your dynamically generated static pages without query strings. look up, default handler in the manual.. you'll be right
Originally posted by MiSV No, the best way to do this is mod_include, which is the SSI plug in for apache. SSI is way less pain than setting up PHP and embedding PHP code into already existing templates.