[include file] wrong path or syntax when using / refering toothe root

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 43900
interpreted = N
texte = I transfering some code from a working application using WebDna to a new server. I don't want to change any single line of code, because the application work perfectly on the other server. But while i do the tranfert i come with some problem of configuration.For now i manage too understand those bug and solve theme. But now i come with some strange behavior with the [INCLUDE file=...] commande. The code says [include file=/NearRootFolder/theFile.inc ... ]. You have too asume that the NearRootFolder is place like this http://localhost/NearRootFolder/ , so when using the / you refers to the root. But on my new server (my dev computer ), this syntax those not work. But if i use a different syntax the include command actually work . For a example : http://localhost/NearRootFolder/folder1//folder2/folder3/theSourceFileWithTh eIncludeCommand.tpl call normaly [include file = /NearRootFolder/thefile.inc ... ] i change it too [include file = ../../../NearRootFolder/thefile.inc] and it work.I hope you understand the point, both those syntax suppose too work in standart url, and it dose when you test it on this structure with something as simple as . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. [include file] wrong path or syntax when using / refering toothe root (Felix-Olivier Robert 2002)
I transfering some code from a working application using WebDna to a new server. I don't want to change any single line of code, because the application work perfectly on the other server. But while i do the tranfert i come with some problem of configuration.For now i manage too understand those bug and solve theme. But now i come with some strange behavior with the [INCLUDE file=...] commande. The code says [include file=/NearRootFolder/theFile.inc ... ]. You have too asume that the NearRootFolder is place like this http://localhost/NearRootFolder/ , so when using the / you refers to the root. But on my new server (my dev computer ), this syntax those not work. But if i use a different syntax the include command actually work . For a example : http://localhost/NearRootFolder/folder1//folder2/folder3/theSourceFileWithTh eIncludeCommand.tpl call normaly [include file = /NearRootFolder/thefile.inc ... ] i change it too [include file = ../../../NearRootFolder/thefile.inc] and it work.I hope you understand the point, both those syntax suppose too work in standart url, and it dose when you test it on this structure with something as simple as
. To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Felix-Olivier Robert

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:

WebCat editing, SiteGuard & SiteEdit (1997) Custom error files (1998) [OT] Indexing of dynamic web sites (2003) Faxing orders in place of email (1997) Thanks Grant (1997) User/pass with tcpconnect (2000) IIS4b2 and WebCatalog b19 (1997) [time] math Q (2003) Requiring that certain fields be completed (1997) Re:2nd WebCatalog2 Feature Request (1996) RE: Checkboxes to add to cart... (1998) Shownext - am i missing something? (1998) MATH PROBLEM (1997) WebCat2: multiple currency support (1997) Last Day of the Month (2005) [WebDNA] WebDNA glitch, no response required ... (2009) problems with 2 tags (1997) WebCat2: Items xx to xx shown, etc. (1997) Summary search -- speed (1997) Defualt folder locations (2004)