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:
F2 to F3 rocky transition (1997)
Format of Required fields error message (1997)
code to phantom spacing (2001)
WC2b12: Yes, Formulas.db is for real (1997)
NT Manual (1997)
Dummy Credit Card Number for debug? (1997)
Trouble with [Math] (1998)
Add to a field (1998)
WC2b15 - [HTMLx]...[/HTMLx] problems (1997)
Google Web Accelerator (2005)
upgrading (1997)
Template transformed itself into a database? (1998)
Server slowing down. (1997)
emailer w/F2 (1997)
lookups (2000)
AppleScript question (1997)
WebCatalog-NT?'s (1996)
Protect (1997)
# of real domains on 1 web server (1997)
[table] and simultaneous users (2008)