Re: old cart file deletion

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 28729
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!!1- Your listfiles folder name must be followed with a slash 2- You don't need the parentheses, but I cannot imagine why they would hurt either. 3- your path to the file needs to begin with ShoppingCartsHere, this is better:[ListFiles ShoppingCarts/] [hideif 5>[Math show=T]{[date]}-{[CreateDate]}[/Math]] [DELETEFILE file=ShoppingCarts/[filename]] [/hideif] [/ListFiles]================================ Kenneth Grome, WebDNA Consultant 808-737-6499 http://webdna.net ================================------------------------------------------------------------- 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!!1- Your listfiles folder name must be followed with a slash 2- You don't need the parentheses, but I cannot imagine why they would hurt either. 3- your path to the file needs to begin with ShoppingCartsHere, this is better:[ListFiles ShoppingCarts/] [hideif 5>[Math show=T]{[date]}-{[CreateDate]}[/Math]] [DELETEFILE file=ShoppingCarts/[filename]] [/hideif] [/ListFiles]================================ Kenneth Grome, WebDNA Consultant 808-737-6499 http://webdna.net ================================------------------------------------------------------------- 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 Kenneth Grome

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:

counters from other site? (1998) different ship dates and shopping carts -- how to? (1997) Need help... (1997) Live Webcasts (1999) MATH (1998) exclusive db lock with webcat-3 ? (2000) [WriteFile] problems (1997) Some Questions (1997) EmailProblem (2003) apache 2.x (2002) Permissions Ignored - PLEASE HELP (2003) MATH PROBLEM (1997) shipcost (1997) credit card authorization question (1997) Re:2nd WebCatalog2 Feature Request (1996) Newbie Help Needed (1998) Instructions for Digest (1997) Anyone using [sendmail] for HTML encoded mail? (2000) How to set triggers (1998) Classified (1999)