Bingo.
CFINCLUDE doesn't care about your web server. It maps to files based
on its
own physical location in the file system. For example, say you have a
file
structure like so:
folderA
index.cfm
folderA1
folderA2
folder1
folder2
file123.cfm
Say you call index.cfm in folderA from the browser and index.cfm
CFINCLUDEs
file123.cfm from folder2.
Images, anchors, and forms in file123.cfm need relative pathing from
folderA
(since that's where your browser THINKS you are), but any CFINCLUDEs or
CFMODULEs need relative pathing from folder2 (since that's where you
REALLY
are).
You can CFINCLUDE files that are outside your web root...
+-----------------------------------------------+
Bryan Love
Macromedia Certified Professional
Internet Application Developer
Database Analyst
Telecommunication Systems
[EMAIL PROTECTED]
+-----------------------------------------------+
"...'If there must be trouble, let it be in my day, that my child may
have
peace'..."
- Thomas Paine, The American Crisis
-----Original Message-----
From: Dave Watts [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 26, 2002 11:02 AM
To: CF-Talk
Subject: RE: CFINCLUDE and virtual directories
> I need to be able to CFINCLUDE files from a directory
> on a different website (same server though). In IIS I
> have set up a virtual mapping so the directory in
> question is available to both websites -- as a real
> directory in the first website (domain1) and a virtual
> directory in the second (domain2). The mapping works
> fine -- I can access the same files from the directory
> regardless of which domain I am under.
The CFINCLUDE tag doesn't use web server mappings. It uses its own
mappings,
created in the CF Administrator, or relative paths through the
filesystem,
based on the location of the calling page.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
______________________________________________________________________
Why Share?
Dedicated Win 2000 Server � PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
Instant Activation � $99/Month � Free Setup
http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists