Re: using listfiles to build a database? more
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 27296
interpreted = N
texte = I have gone a head and tried to write this database and nothing iswritten. Here is the WebCat code:------------[ListFiles ./pdfs/] [Showif [IsFolder]=T] [ListFiles [FullPath]] [hideif [IsFolder]=F] [ListFiles [FullPath]]
[fullpath] | [filename] | [cart] [Append db=dbs/files.db]pub_filepath=[fullpath]&pub_filename=[filename]&pub_id=[cart][/Append] [/ListFiles] [/hideif] [/ListFiles] [/Showif] [/ListFiles]------------this is WebCat 3.0.7 on Solaris. I have checked to make sure that thefiles are owned by 'nobody' and everything is in the webroot folder thatwe use for the site. I have tried with the full path (from root) to thedatabase etc.As I am not a unix guru, I don't knwo where to look on the system forpossible error messages that might tell me why I couldn't write to thedatabase. I can say that the [elapsedtime] is longer since I added theappend context. Anyone have any ideas as to why this isn't working? Is itsomething dumb in the code or do you think it is in the permissions?And I have checked the case of the db filename, that isn't the problem
DaleThu, 10 Feb 2000 10:50:12>WebCatalog 3.0.7 on Solaris (and WebCat still keeps quiting, with no>response from SM yet).>>Hi All,>>I looked at Micheals code fromthe archive and have only (I think) one>minor 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 the>file 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 for>each of these files as I build the database. Unfortunately it appears>that looping through a [listfiles] doesn't cause [cart] to refresh I>guess because it is the same single page.>>So the question is, how do I get a unique [cart] value for each file? I>want to use the [cart] as I will later be manually adding new files to>this database and want to insure that all of the numbers are unique (as>described 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 digest@talk.smithmicro.com>-- 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:
I have gone a head and tried to write this database and nothing iswritten. Here is the WebCat code:------------[ListFiles ./pdfs/] [Showif [IsFolder]=T] [ListFiles [FullPath]] [hideif [IsFolder]=F] [ListFiles [FullPath]]
[fullpath] | [filename] | [cart] [Append db=dbs/files.db]pub_filepath=[fullpath]&pub_filename=[filename]&pub_id=[cart][/Append] [/ListFiles] [/hideif] [/ListFiles] [/Showif] [/ListFiles]------------this is WebCat 3.0.7 on Solaris. I have checked to make sure that thefiles are owned by 'nobody' and everything is in the webroot folder thatwe use for the site. I have tried with the full path (from root) to thedatabase etc.As I am not a unix guru, I don't knwo where to look on the system forpossible error messages that might tell me why I couldn't write to thedatabase. I can say that the [elapsedtime] is longer since I added theappend context. Anyone have any ideas as to why this isn't working? Is itsomething dumb in the code or do you think it is in the permissions?And I have checked the case of the db filename, that isn't the problem DaleThu, 10 Feb 2000 10:50:12>WebCatalog 3.0.7 on Solaris (and WebCat still keeps quiting, with no>response from SM yet).>>Hi All,>>I looked at Micheals code fromthe archive and have only (I think) one>minor 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 the>file 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 for>each of these files as I build the database. Unfortunately it appears>that looping through a [listfiles] doesn't cause [cart] to refresh I>guess because it is the same single page.>>So the question is, how do I get a unique [cart] value for each file? I>want to use the [cart] as I will later be manually adding new files to>this database and want to insure that all of the numbers are unique (as>described 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 digest@talk.smithmicro.com>-- 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:
PCS Emailer's role ? (1997)
Math Problem - Format? (1997)
Emailer choke (1997)
Error (1997)
Mixing and/or in searches (1998)
WebCatalog/Mac 2.1b2 - PIXO (1997)
[Sum] function? (1997)
Emailer setup (1997)
How To question on setting up downloads (1997)
Plugin or CGI or both (1997)
New public beta available (1997)
help needed: Non-english characters in WebCatalog (1997)
PCS Frames (1997)
problems with 2 tags (1997)
& in Lookups (1997)
WebCatalog can't find database (1997)
Replacing entry (1998)
help needed: Non-english characters in WebCatalog (1997)
WebCat and Personal Web Server (1998)
WC2b15 - [HTMLx]...[/HTMLx] problems (1997)