[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Server Side Include Problem - RaQ3



You might want to to the date fetching with some PHP or PERL.

<?
if($today = date("d"))
{
    print ("<!--#include virtual="$todayaq.txt" -->\n");
}
?>

The funnction date("d"); returns the date of the month with leadinf zeroes.
otherwise use D.

le 22.8.2001 10:25, House of Jupiter à montyharris@xxxxxxxxxxxxxxxxxxxx a
écrit :

> Can anyone tell me how to schedule a server side include on a  RaQ3 please?
> I have 31 different files which need to be displayed on one day each month,
> and so far have had no luck.
> 
> I know SSI  is working, because these two lines work :
> 
> <!--#echo var="DATE_GMT"-->
> 
> <!--#include virtual="01aq.txt" -->
> 
> But with th efollowing line :
> 
> <!--#if "&&DATE_LOCAL&&" hasstring "01" include file="01aq.txt"-->
> 
> I get an error has occured with this directive.
> 
> 
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To Subscribe or Unsubscribe, please go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users

=======================================================================

Marco Baurdoux
Unix Administrator
Infomaniak Network SA
Avenue de la Praille 26
1227 Carouge
Switzerland
Tel: +41 (0)22 820 35 41
Fax: +41 (0)22 820 35 46
http://web.infomaniak.ch

=======================================================================