Re: Paths, relative paths, webstar server setup and security (Mac)

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 14881
interpreted = N
texte = Sleep deprivation must be setting in. I see now that you've already answered my question!Sorry!Sandy<>Also, for neatnicks who like to organize everything into folders, what >WebCatalog files have to be together? Do databases have to be in the >same folder as Webstar or WebCatalog or the templates that use themMost of the guts of the WebCatalog folder should stay together, but the examples (TeaRoom, GeneralStore) were designed as completely moveable folders with all relative paths. So you can drag them aywhere and they will still work. Your projects should be organized the same way.If you have some [include] files or databases that are used in all your projects, then you can put them in a folder at the root of the W* hierarchy and access them as absolute paths like the following:[include /globals/header.inc]That preceding / means to look for the file starting at the root, inside a folder called globals (just like URLs). Same with db, as in[search db=/globals/taxRates.db]You can also look 'up' one folder or more by using relative paths like this (also just like URLs):[include ../header.inc] or [include ../../header.inc]All of these paths are relative to the template itself. So if the db is in the same folder as the template, then you don't need to use / or anything. If you want to look down inside a folder that is at the same level as your template, then do this:[search db=LocalFolder/xx.db]Notice that without the preceding /, it looks in the same folder as the template for a folder called LocalFolder.> Associated Messages, from the most recent to the oldest:

    
  1. Re: Paths, relative paths, webstar server setup and security (Mac) (Sandra L. Pitner 1997)
  2. Re: Paths, relative paths, webstar server setup and security (Mac) (Sandra L. Pitner 1997)
  3. Re: Paths, relative paths, webstar server setup and security (Mac) (Grant Hulbert 1997)
Sleep deprivation must be setting in. I see now that you've already answered my question!Sorry!Sandy<>Also, for neatnicks who like to organize everything into folders, what >WebCatalog files have to be together? Do databases have to be in the >same folder as Webstar or WebCatalog or the templates that use themMost of the guts of the WebCatalog folder should stay together, but the examples (TeaRoom, GeneralStore) were designed as completely moveable folders with all relative paths. So you can drag them aywhere and they will still work. Your projects should be organized the same way.If you have some [include] files or databases that are used in all your projects, then you can put them in a folder at the root of the W* hierarchy and access them as absolute paths like the following:[include /globals/header.inc]That preceding / means to look for the file starting at the root, inside a folder called globals (just like URLs). Same with db, as in[search db=/globals/taxRates.db]You can also look 'up' one folder or more by using relative paths like this (also just like URLs):[include ../header.inc] or [include ../../header.inc]All of these paths are relative to the template itself. So if the db is in the same folder as the template, then you don't need to use / or anything. If you want to look down inside a folder that is at the same level as your template, then do this:[search db=LocalFolder/xx.db]Notice that without the preceding /, it looks in the same folder as the template for a folder called LocalFolder.> Sandra L. Pitner

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:

Exclude by date - multiple (1997) Pull Down Menu for Catagories (2000) Re(2): webDNA and flash UTF8 translation (2003) New Plug-in and Type 11 errors (1997) [ConvertChars] problem (1997) Logging purchases (1997) & not allowed in db by definition? (1999) select multiple (1997) Bug Report, maybe (1997) Need help with emailer- 2 issues (1997) multiple db's (2003) [WebDNA] [OT] BBEdit Glossary (2012) off topic - dna snipets (1997) [append] and SSL (1997) [OT] Xserve (2002) getting URL variable with '%20' in the variable name (2006) RE: WebDNA-Talk searchable? (1997) Spell Check (2005) Setting up shop (1997) writing db to disk (1997)