Re: Using [Include] Context
This WebDNA talk-list message is from 1999
It keeps the original formatting.
numero = 24677
interpreted = N
texte = The key is in how you interpret the word relative in this context.Relative to the current document, or relative to the root. Webcatalog isexpecting the former. On NT, root relative is further confused by the factthat the leading slash in the path actually points to the Webcatalogdirectory in the scripts directory, instead of the expected web site root.What you need to do is create a document relative path, such as [includefile=../include/filename.txt] which will work on all platforms. In fact, inhtml as well as webdna, using root relative or semi-qualified paths can, andusually will, make your web site non-portable. References such assrc=/images/header.gif will lock your web site in the directory structurethat it's in now, needing code revision to move the site to a new serverthat may use different server software or directory structures. Simpleanswer: where possible, always use ../filepath/ (document relative) filepaths instead of /filepath/ (root relative) file paths, whether in yourWebDNA or in your HTML.Mike> From: Vince Medina
> Reply-To: (WebCatalog Talk)> Date: Thu, 11 Nov 1999 21:52:30> To: (WebCatalog Talk)> Subject: Using [Include] Context> > When using an [include file=/include/filename.txt]> We get a file not found error.> > As I understand the syntax, the path should be relative to virtual root path> where my htdocs dir is.> > For example: If the site is www.test.com then it should include a file> located in http://www.test.com/include/filename.txt> > Is there something I am missing?> > Vince> > > APC Net, Inc. - sales@apcn.net - www.apcn.net> 4471 NW 36 St. #110 - Miami Springs, FL 33166> > > > -------------------------------------------------------------> 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> -------------------------------------------------------------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:
The key is in how you interpret the word relative in this context.Relative to the current document, or relative to the root. Webcatalog isexpecting the former. On NT, root relative is further confused by the factthat the leading slash in the path actually points to the Webcatalogdirectory in the scripts directory, instead of the expected web site root.What you need to do is create a document relative path, such as [includefile=../include/filename.txt] which will work on all platforms. In fact, inhtml as well as webdna, using root relative or semi-qualified paths can, andusually will, make your web site non-portable. References such assrc=/images/header.gif will lock your web site in the directory structurethat it's in now, needing code revision to move the site to a new serverthat may use different server software or directory structures. Simpleanswer: where possible, always use ../filepath/ (document relative) filepaths instead of /filepath/ (root relative) file paths, whether in yourWebDNA or in your HTML.Mike> From: Vince Medina > Reply-To: (WebCatalog Talk)> Date: Thu, 11 Nov 1999 21:52:30> To: (WebCatalog Talk)> Subject: Using [include] Context> > When using an [include file=/include/filename.txt]> We get a file not found error.> > As I understand the syntax, the path should be relative to virtual root path> where my htdocs dir is.> > For example: If the site is www.test.com then it should include a file> located in http://www.test.com/include/filename.txt> > Is there something I am missing?> > Vince> > > APC Net, Inc. - sales@apcn.net - www.apcn.net> 4471 NW 36 St. #110 - Miami Springs, FL 33166> > > > -------------------------------------------------------------> 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> -------------------------------------------------------------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
Mike_Davis
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:
Incompatibility with WebCat 3 templates ... (2000)
Cancel Subscription (1996)
EIMS Problems (1997)
Multiple adding (1997)
WebCatalog stalls (1998)
[WebDNA] eCommerce in 7.0 but not in 7.1? (2012)
4D Database (1997)
too many nested tags ... (1997)
http upload (2001)
database files in secure folder (1997)
Help formatting search results w/ table (1997)
WebCatalog for guestbook ? (1997)
Encrypted Databases (2000)
Surprise x and y post args (1998)
Running 2 two WebCatalog.acgi's (1996)
Problems appending to database (1997)
WebCat2 several catalogs? (1997)
RequiredFields template (1997)
WebCatalog and Macromedia Flash (1998)
hiding blank fields (2003)