HTML Help Forum HTML Help
Please Search for the answer to your question before asking it! Thanks.
 

SSI date configuration
Post a Reply to this Topic Ask a New Question
Click here to go to the original topic
       HTML Help Forum -> SSI
View previous topic :: View next topic  
Author Message
Daniël



Joined: 31 Mar 2005
Posts: 9

Posted: Thu Feb 09, 2006 7:27 am     SSI date configuration  

Hi,

I want to create a daily varying URL to http://mgl.digi-dition.nl/daily/YEAR/MONTH/DAY/MGL/MA/11/pagina.php (example)

However, I need the MONTH and DAY values to be only one digit in length when they represent a value below ten. So instead of 04 it has to be 4

However, if I use SSI, I will get the 04/04 for April 4th, when I use the following syntax;

Code: <!-- #CONFIG TIMEFMT="%Y/%m/%d" -->
http://mgl.digi-dition.nl/daily/<!--#ECHO VAR = "DATE_LOCAL" -->/MGL/MA/11/pagina.php

Anyone any suggestion?

Daniel
degsy



Joined: 23 Feb 2005
Posts: 2440
Location: North East, UK

Posted: Thu Feb 09, 2006 9:21 am      

%m 12 month number [1,12]; single digits are preceded by 0

Doesn't look like you can do it.


See if you have different scripting options such as PHP or ASP
Daniël



Joined: 31 Mar 2005
Posts: 9

Posted: Thu Feb 09, 2006 11:13 am      

OK thanks, I've indeed sorted it out with ASP, was exactly two minutes of work :roll: I only thought SSI would be more elegant.

Code: <a href="http://mgl.digi-dition.nl/daily/<% = Year(now) & "/" & Month(now) & "/" & Day(now) %>/MGL/MA/11/pagina.php">link</a>
<p>
<img src=http://mgl.digi-dition.nl/daily/<% = Year(now) & "/" & Month(now) & "/" & Day(now) %>/MGL/MA/11/DDL_1DA_20060209_96.jpg>
 
 
DARFUR
HOSTING / DESIGN
MAKE MONEY

       HTML Help Forum -> SSI
Page 1 of 1


Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.19 © 2001, 2002 phpBB Group