This is strange because we offer shared hosting to developers and I have never had the issue of having to "map" for include files.
Even all of our clients are within the same shared server and I always use <cfinclude template="/Include/whatever.cfm"> Actually this is part of the WebService Extension to allow for serverside includes. Ms. Barbara S. ONeal President/Co-Founder Centric WebR, Inc. <http://www.centricweb.com> http://www.centricweb.com 630-734-0741 Adobe Community Expert From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Christopher Jordan Sent: Thursday, September 13, 2007 6:35 PM To: Dallas/Fort Worth ColdFusion User Group Mailing List Subject: Re: [DFW CFUG] Newbie question 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] <mailto:[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/> http://www.mail-archive.com/list%40dfwcfug.org/ DFWCFUG Sponsors: www.instantspot.com/ www.teksystems.com/ <http://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/
