Re: ListFiles then delete by ModDate
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 44433
interpreted = N
texte = Obsolete shopping carts are deleted every 24 hoursOn Monday, October 28, 2002, at 03:47 PM, Tim Robinson wrote:> Hi there,>> This seems simple enough, but I seem to be going round and round in > circles. Is there an 'approved' method for this? I simply want to set > up a triggered file to delete obsolete shopping carts.>> I want to do a [showif], but the [moddate] is causing problems... I've > tried a [getchars] to break it up into the right format for a > [math]{[date]}[/math] type thingy, but [moddate] displays no leading > zeros. That is, it doesn't display 02/02/02, it displays 2/2/02 which > throws out the [getchars].>> I've tried doing a listwords (below)>> [ListFiles path=../docs/ShoppingCarts/]> [ListWords Words=[ModDate]&Delimiters=/]> [showif [index]=2][word][/showif]/[showif > [index]=1][word][/showif]/20[showif [index]=3][word][/showif]
> [/ListWords]> [/Listfiles]>> but the [index] here seems to get mixed up with the [index] of the > [listfiles] loop.>> Does anyone have some sage words?>> Regards,> Tim>>>>> -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list
.> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://search.smithmicro.com/>>RegardsStuart Tremainidfk web developments114a/40 yeo street neutral bay 2089 australiat +612 9908 2134f +612 9908 4837-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Obsolete shopping carts are deleted every 24 hoursOn Monday, October 28, 2002, at 03:47 PM, Tim Robinson wrote:> Hi there,>> This seems simple enough, but I seem to be going round and round in > circles. Is there an 'approved' method for this? I simply want to set > up a triggered file to delete obsolete shopping carts.>> I want to do a [showif], but the [moddate] is causing problems... I've > tried a [getchars] to break it up into the right format for a > [math]{[date]}[/math] type thingy, but [moddate] displays no leading > zeros. That is, it doesn't display 02/02/02, it displays 2/2/02 which > throws out the [getchars].>> I've tried doing a listwords (below)>> [ListFiles path=../docs/ShoppingCarts/]> [ListWords Words=[ModDate]&Delimiters=/]> [showif [index]=2][word][/showif]/[showif > [index]=1][word][/showif]/20[showif [index]=3][word][/showif]
> [/ListWords]> [/Listfiles]>> but the [index] here seems to get mixed up with the [index] of the > [listfiles] loop.>> Does anyone have some sage words?>> Regards,> Tim>>>>> -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://search.smithmicro.com/>>RegardsStuart Tremainidfk web developments114a/40 yeo street neutral bay 2089 australiat +612 9908 2134f +612 9908 4837-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Stuart Tremain
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
plugin-acgi, different results (1997)
[Fwd: can we get string variables?] (1998)
WebCat2 - Getting to the browser's username/password data (1997)
authenticating a second user (1997)
WebCommerce: Folder organization ? (1997)
RE: Can a database get stomped by simultaneous access? (1997)
WebDNA Solutions ... sorry! (1997)
[AppendFile] problem (WebCat2b13 Mac .acgi) (1997)
[OT] Visual Fox Pro vs. SQL (2005)
[sendmail] and [formvariables] (1997)
Help! WebCat2 bug (1997)
WebCat editing, SiteGuard & SiteEdit (1997)
read and write you own cookies with webcat (1997)
[protect admin] (1997)
Multiple catalog databases and showcart (1997)
Emailer setup (1997)
[WriteFile] problems (1997)
Nutscrape Doesn't Render Right (2002)
Secure server question (1997)
WebCatalog2 Feature Feedback (1996)