Loyd, I've noticed that at one of my client's where we own and control the entire server, I can say something like: <cfinclude template="/Include/JS/somecfmfile.cfm">, but that at another client where their site is hosted in a shared environment, I have to say <cfinclude template="include/JS/somecfmfile.cfm">.
In both of these cases the include directory is directly off of my web root. Perhaps (and I could be dead wrong here), but in a shared environment your wwwroot isn't necessarily THE wwwroot. Does that make sense to anyone else? It sounds right to me. Hope this helped. Cheers, Chris On 9/13/07, Loyd Campbell <[EMAIL PROTECTED]> wrote: > > I've been writing CF since version 1, but have always been behind > corporate firewalls or on dedicated servers. Now I'm working on a public > site on a shared server and have a question that seems pretty basic to me, > but I can't figure out the answer. > > > > To make a site more maintainable we use include files for headers, > footers, navigation panels, etc. In the past I have always been able to > use this notation to get to a file on the root directory regardless of what > directory the included file was called from: <cfinclude template="/ > header.cfm"> With a dedicated server that is not a problem. The problem is > that the techs that work on the shared server say that this notation is not > a "relative" path and cfinclude requires a relative path or a CF Admin > mapped path. I asked if they could map "/" to the web root of our site and > they said they cannot because of the shared status. I've tried several other > techniques without success. > > > > I looked up the CF Docs and they say that "/header.cfm" is a relative > path. When I try it, though, it throws an error about using relative or > CF mapped paths in cfinclude. Has anyone got a relatively simple solution to > this problem? I hate to have multiple copies of a header, footer, or > navigation file because that defeats the purpose. > > > > Thanks, > > > > Loyd Campbell > > Plano, TX > > > > _______________________________________________ > Reply to DFWCFUG: > [email protected] > Subscribe/Unsubscribe: > http://lists1.safesecureweb.com/mailman/listinfo/list > List Archives: > http://www.mail-archive.com/list%40list.dfwcfug.org/ > http://www.mail-archive.com/list%40dfwcfug.org/ > DFWCFUG Sponsors: > www.instantspot.com/ > www.teksystems.com/ > > -- http://cjordan.us
_______________________________________________ Reply to DFWCFUG: [email protected] Subscribe/Unsubscribe: http://lists1.safesecureweb.com/mailman/listinfo/list List Archives: http://www.mail-archive.com/list%40list.dfwcfug.org/ http://www.mail-archive.com/list%40dfwcfug.org/ DFWCFUG Sponsors: www.instantspot.com/ www.teksystems.com/
