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:

& Aftermath (1999) WebCat/Typhoon Status under Windows (1998) no word on MacAuthorize... (1997) greater than or equal to (1997) emailer don't work (1998) Where's Cart Created ? (1997) printing twice? and fix (1997) Search returns all, not 20 (1997) Integration with SQL (1997) Not really WebCat (1997) Looking up two prices in Formulas.db (1997) using showpage and showcart commands (1996) Credit Card Number checking (1997) DomainList (2005) Help! WebCat2 bug (1997) What is WebDNA (1997) WebCat & Backoffice Solution? (2000) Multiple SSL Keys (1998) WebCat2: multiple currency support (1997) [AppendFile] problem (WebCat2b13 Mac .acgi) (1997)