old cart file deletion

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 28728
interpreted = N
texte = Could one of you seasoned webcat programmers doublecheck my code please? I am on Unix and so need a workaround for the fact that webcat will not automagically delete old shopping cart files, like it does on other platforms. Micheal O Shea posted some cool code for this a while back to take care of all shopping cart folder everywhere on the server, but I am not sys admin so must do my own locally.I am asking for someone to doublecheck me for 2 reasons: 1) So I don't accidentally delete wanted files 2) Because I haven't yet had experience with that feature/bug of webcat where you can't accurately delete (files and/or? records) inside a [founditems]. I am so ignorant of this issue that I don't know if it might come into play here (even though this is obviously not within a [founditems].I want to delete all cart files that are more than 5 days old whenever this code is hit:[ListFiles ShoppingCarts] [hideif 5>[Math show=T]({[date]}-{[CreateDate]})[/Math]] [DELETEFILE file=[filename]] [/hideif] [/ListFiles]Thanks for your time!!-John ------------------------------------------------------------- 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 Associated Messages, from the most recent to the oldest:

    
  1. Re: old cart file deletion (John Butler 2000)
  2. Re: old cart file deletion (Kenneth Grome 2000)
  3. old cart file deletion (John Butler 2000)
Could one of you seasoned webcat programmers doublecheck my code please? I am on Unix and so need a workaround for the fact that webcat will not automagically delete old shopping cart files, like it does on other platforms. Micheal O Shea posted some cool code for this a while back to take care of all shopping cart folder everywhere on the server, but I am not sys admin so must do my own locally.I am asking for someone to doublecheck me for 2 reasons: 1) So I don't accidentally delete wanted files 2) Because I haven't yet had experience with that feature/bug of webcat where you can't accurately delete (files and/or? records) inside a [founditems]. I am so ignorant of this issue that I don't know if it might come into play here (even though this is obviously not within a [founditems].I want to delete all cart files that are more than 5 days old whenever this code is hit:[ListFiles ShoppingCarts] [hideif 5>[Math show=T]({[date]}-{[CreateDate]})[/Math]] [DELETEFILE file=[filename]] [/hideif] [/ListFiles]Thanks for your time!!-John ------------------------------------------------------------- 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 John Butler

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:

Frames and WebCat (1997) Search (1997) WebCat2 - [format thousands] (1997) Date format problems (1997) Showing specific [cart] contents (1998) Converting spaces to + in results list (SOLVED) (2000) emailer w/F2 (1997) Help! WebCat2 bug (1997) Parsing overhead for commenting out line endings (2003) WC2f3 (1997) random sorting broken (was Re[2]: php vs WebCatalog) (2000) RE: [WebDNA] Displaying time specific records (2010) RE: [WebDNA] [AddFields] Restrictions (2012) [WriteFile] problems (1997) New WebCatalog Version !!! (1997) WC Database Format (1997) Concerning Emailer under Linux... does it exist? (2000) WebCat2.0 [format thousands .0f] no go (1997) Country & Ship-to address & other fields ? (1997) Problems with ^ could be solved with [REPLACE CHARACTERS] (1997)