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:

[WebDNA] contents of db files disappearing including triggers.db (2019) webcatalog 2.1.3 ACGI Weirdness? (1998) [format] problem (2001) Generating Report Totals (1997) DDE feature in webcat (1998) Why won't this work (2005) Web Merchant process after credit card clears (1998) docs for WebCatalog2 (1997) [SearchString] usage (1997) 2.0 Beta (1997) Execute Applescript (1997) Tip: upgrading to WebCatalog 3.x, fields to watch for (1999) text size limitation (1997) RE: Promise of future help (1998) [SearchString] problem with [search] context (1997) Upgrade Problem.... (1998) syntax question, not in online refernce (1997) webcat and webkitty votes needed (1997) Multiple catalog databases and showcart (1997) Euro WebDNA Conference (2004)