Re: old problem
This WebDNA talk-list message is from 2001
It keeps the original formatting.
numero = 39948
interpreted = N
texte = on 11/7/01 4:13 am, Laeg Ent. at laeg_enterprises@yahoo.co.uk so noted...> Did this code work for you? Its not working for me at> all. I've held the code on its own in a file, and> tested it just typing the URL into a browser and no> joy. No files are deleted(that should be deleted).> This really has me baffled as all different approaches> to date have not worked.Yes, the code works on my development server here (MacOS 9.2.1, WebTen3.0.4, WebCat PI 4.0.2rc2). It's laid out like this.Root directory contains:index.htmlorders/index.html is:[math show=f]delTotal=0[/math][search db=orders/filelist.db&neFilenamesData=[blank]][founditems][text]delFile=T[/text][listfiles path=orders][showif [filename]=[filenames]][text]delFile=F[/text][/showif][/listfiles][showif [delFile]=T][math show=F]delTotal=[delTotal]+1[/math][text]delFile[delTotal]=[filenames][/text][/showif][/founditems][/search][loop start=1&end=[delTotal]][delete db=orders/filelist.db&eqFILENAMESdata=[text]delFile[index][/text]][/loop]The orders directory contains:(a dozen text files)filelist.dbfilelist.hdrfilelist.hdr is:filenames<
>filelist.db has the names of all the text files in the orders directoryand five other names that *don't* exist there. Hitting the index.html pageremoves the five non-matching names from filelist.db.Rob MarquardtDesigner/Resident WireheadToast Design800 Washington Avenue NorthMinneapolis MN 55401612.330.9863 v612.321.9424 fhttp://www.toastdesign.com-------------------------------------------------------------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:
|
- Re: [WebDNA] Old Problem, the exclamation point (Terry Wilson 2014)
- Re: [WebDNA] Old Problem, the exclamation point (Terry Wilson 2014)
- Re: [WebDNA] Old Problem, the exclamation point (Donovan Brooke 2014)
- Re: [WebDNA] Old Problem, the exclamation point (Terry Wilson 2014)
- Re: [WebDNA] Old Problem, the exclamation point (Steve Braun 2014)
- Re: [WebDNA] Old Problem, the exclamation point (Terry Wilson 2014)
- Re: [WebDNA] Old Problem, the exclamation point (Donovan Brooke 2014)
- Re: [WebDNA] Old Problem, the exclamation point (Steve Braun 2014)
- Re: [WebDNA] Old Problem, the exclamation point (Tom Duke 2014)
- [WebDNA] Old Problem, the exclamation point (Steve Braun 2014)
- Re: old problem (Brian Fries 2001)
- Re: old problem (Rob Marquardt 2001)
- Re: old problem (Laeg Ent. 2001)
- Re: old problem (Laeg Ent. 2001)
- Re: old problem (Rob Marquardt 2001)
- Re: old problem (Laeg Ent. 2001)
- Re: old problem (Rob Marquardt 2001)
- old problem (Laeg Ent. 2001)
- Re: OLD PROBLEM (bob 1997)
- OLD PROBLEM (natasha 1997)
|
on 11/7/01 4:13 am, Laeg Ent. at laeg_enterprises@yahoo.co.uk so noted...> Did this code work for you? Its not working for me at> all. I've held the code on its own in a file, and> tested it just typing the URL into a browser and no> joy. No files are deleted(that should be deleted).> This really has me baffled as all different approaches> to date have not worked.Yes, the code works on my development server here (MacOS 9.2.1, WebTen3.0.4, WebCat PI 4.0.2rc2). It's laid out like this.Root directory contains:index.htmlorders/index.html is:[math show=f]delTotal=0[/math][search db=orders/filelist.db&neFilenamesData=[blank]][founditems][text]delFile=T[/text][listfiles path=orders][showif [filename]=[filenames]][text]delFile=F[/text][/showif][/listfiles][showif [delFile]=T][math show=F]delTotal=[delTotal]+1[/math][text]delFile[delTotal]=[filenames][/text][/showif][/founditems][/search][loop start=1&end=[delTotal]][delete db=orders/filelist.db&eqFILENAMESdata=[text]delFile[index][/text]][/loop]The orders directory contains:(a dozen text files)filelist.dbfilelist.hdrfilelist.hdr is:filenames<>filelist.db has the names of all the text files in the orders directoryand five other names that *don't* exist there. Hitting the index.html pageremoves the five non-matching names from filelist.db.Rob MarquardtDesigner/Resident WireheadToast Design800 Washington Avenue NorthMinneapolis MN 55401612.330.9863 v612.321.9424 fhttp://www.toastdesign.com-------------------------------------------------------------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/
Rob Marquardt
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:
LineItem variable set (2007)
Checkboxes (1998)
[Webcat 2]Next (1997)
OH MY GOD! (1998)
Missing Cart Information (2003)
Email Formatting and Encryption (1998)
dos command not working the same as does at prompt? (1998)
WebCat2.0 [format thousands .0f] no go (1997)
[WebDNA] Sorting questions (2009)
[WebDNA] TCPDoh (2009)
[WebDNA] math date issues? (2013)
Some Advise needed (1997)
SQL weirdness (2000)
Emailer Set Up (1997)
WebCat b15 Mac plug-in (1997)
(1997)
Banners and sort of random display (1997)
Using Applescript to process WebCatalog functions (1998)
[OT] Linux Mailservers (2003)
[WebDNA] Anyone using WebDNA7 and Lion Server? (2011)