Web Hosting Talk







View Full Version : Can I schedule a server side include?


horoscopes2000
06-27-2001, 03:03 AM
Hi guys,

I am attempting to schedule server side includes on my RaQ3.

For example, I have a horoscope page.

On June 26th I need the horoscope for that day to appear, then on the 27th it should be replaced with the horoscope for that date.

I have 12 pages, one for each sign, and 31 different horoscopes for each of the 12 pages (one for each day).

What is the best, and least CPU intense way of doing this?

I had scheduled includes with Frontpage 2000, but I am trying to move away from FP. Is there another way to do this?

Many thanks for your help.

Honu
06-27-2001, 04:10 AM
Aloha

ya might try it out using xssi instead
try here
http://tech.irt.org/articles/js166/index.htm#xssi_app

another good source of info
http://www.wdvl.com/Authoring/SSI/

slade
06-27-2001, 09:27 AM
You're not looking for a scheduled event.

All you're needing is a script that checks server time(date, really) and pulls from your "database" or "flatfile" that date's quote.


select * from Horoscopes where Sign=7

horoscopes2000
06-27-2001, 06:10 PM
Thanks guys - on my way to check those out now. :o)

blazenet
06-28-2001, 01:22 PM
Originally posted by slade
You're not looking for a scheduled event.

All you're needing is a script that checks server time(date, really) and pulls from your "database" or "flatfile" that date's quote.


select * from Horoscopes where Sign=7

But it would be less server load consuming if you used the XSSI method with flat files. You will need to use SSI anyway, and the difference between XSSI and SSI isn't that much as PHP/Perl/ASP/Whatever and flat files.

horoscopes2000
07-01-2001, 07:51 PM
OK, I am looking into the XSSI and have some questions i can't seem to find the answers to.

1. Can i use this on a RaQ3 just as if it's SSI, without installing modules etc, or if not, where do I get the modules?

I managed to get SSI working, but does anyonw know what is wrong with the following line?

<!--#if "&&DATE_LOCAL&&" hasstring "01" include file="01aq.txt"-->

I get an error has occured with this directive.

I know SSI is working, because these two lines work :

<!--#echo var="DATE_GMT"-->

<!--#include virtual="01aq.txt" -->


Any ideas?