Re: using listfiles to build a database?
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 27293
interpreted = N
texte = WebCatalog 3.0.7 on Solaris (and WebCat still keeps quiting, with noresponse from SM yet).Hi All,I looked at Micheals code fromthe archive and have only (I think) oneminor problem with adapting it for what I am tring to do.
I am trying to navigate down the hierarchy of a hard drive to get thefile names and stick them in a database. This is done with [listfiles].The other thing I am trying to do is create a unique [cart] number foreach of these files as I build the database. Unfortunately it appearsthat looping through a [listfiles] doesn't cause [cart] to refresh Iguess because it is the same single page.So the question is, how do I get a unique [cart] value for each file? Iwant to use the [cart] as I will later be manually adding new files tothis database and want to insure that all of the numbers are unique (asdescribed they will be if I continue to use the [cart] tag).Thanks!Wed, 9 Feb 2000 11:50:35>>Hi all,>>>>I need to build a database from files on the hard drive. I am thinking>I>>should use listfiles then pull the data and append it to a file to>buiild my>>DB. How would I get listfiles to work down the directories and get the>other>>files?>>>>I am using WebCat 3.07 on Solaris with apache.>>>>Thanks>Therio,>If you make the [listfiles] an include in your template and showif >[isfolder]=T you can descend the dir tree.>I posted similar code to delete shopping carts recursively. If you >search the archives you should be able to modify it to suit your >needs.>Hope this helps.>>>>Micheal O Shea Email:micheal@com4u.ch>com4u.ch http://www.com4u.ch>Breitistrasse 7B PGP key available upon request. >>CH-5506 Maegenwil Tel: +41 62 896 46 26>Switzerland>>------------------------------------------------------------->Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging>Server.>To end your Mail problems go to .>>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>-- Dale Therio Dresdner Kleinwort Benson Research+49 (0) 69 26 31 9977 (o) Jürgen-Ponto-Platz 1+49 (0) 69 26 31 1379 (f) 60301 Frankfurt+49 (0) 170 93 43 610 (m) Germany-------------------------------------------------------------Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.To end your Mail problems go to .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:
WebCatalog 3.0.7 on Solaris (and WebCat still keeps quiting, with noresponse from SM yet).Hi All,I looked at Micheals code fromthe archive and have only (I think) oneminor problem with adapting it for what I am tring to do. I am trying to navigate down the hierarchy of a hard drive to get thefile names and stick them in a database. This is done with [listfiles].The other thing I am trying to do is create a unique [cart] number foreach of these files as I build the database. Unfortunately it appearsthat looping through a [listfiles] doesn't cause [cart] to refresh Iguess because it is the same single page.So the question is, how do I get a unique [cart] value for each file? Iwant to use the [cart] as I will later be manually adding new files tothis database and want to insure that all of the numbers are unique (asdescribed they will be if I continue to use the [cart] tag).Thanks!Wed, 9 Feb 2000 11:50:35>>Hi all,>>>>I need to build a database from files on the hard drive. I am thinking>I>>should use listfiles then pull the data and append it to a file to>buiild my>>DB. How would I get listfiles to work down the directories and get the>other>>files?>>>>I am using WebCat 3.07 on Solaris with apache.>>>>Thanks>Therio,>If you make the [listfiles] an include in your template and showif >[isfolder]=T you can descend the dir tree.>I posted similar code to delete shopping carts recursively. If you >search the archives you should be able to modify it to suit your >needs.>Hope this helps.>>>>Micheal O Shea Email:micheal@com4u.ch>com4u.ch http://www.com4u.ch>Breitistrasse 7B PGP key available upon request. >>CH-5506 Maegenwil Tel: +41 62 896 46 26>Switzerland>>------------------------------------------------------------->Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging>Server.>To end your Mail problems go to .>>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>-- Dale Therio Dresdner Kleinwort Benson Research+49 (0) 69 26 31 9977 (o) Jürgen-Ponto-Platz 1+49 (0) 69 26 31 1379 (f) 60301 Frankfurt+49 (0) 170 93 43 610 (m) Germany-------------------------------------------------------------Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.To end your Mail problems go to .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
Dale Therio
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:
Getting total number of items ordered (1997)
WC2.0 Memory Requirements (1997)
locking variables? (2000)
Re[2]: Major problem (1999)
WebCat2b12--[searchstring] bug (1997)
MasterCounter and capitalization (1997)
sendmail spaces (1997)
[WebDNA] WebDNA Lounge Act (2010)
[math date] with non-US date format (2000)
AuthenticateChecker (2000)
Sorting Numbers (1997)
webcat serving multiple copies of same db from ram (2000)
Frames and WebCat (1997)
Quickie question on the email templates (1997)
[append] problem (1997)
About WebDNA (2006)
shownext (1997)
[shownext max=?] armed (1997)
Instructions for Digest (1997)
WebCat2 - Getting to the browser's username/password data (1997)