Mike:
I've run into a similar problem when sharing a common "GLOBAL.ASA" file
between different directories. I am developing "course" web sites at
Georgia Tech, and while I want to share some common scripts (and ASP
modules) between different directories, I also want to allow each class to
have a "custom" header, specific to that class.
I found a solution that seems to work. Perhaps Joshua can fine-tune this
solution.
PROBLEM:
$Response->Include( "./header.asp" ) will often use the content of the first
"header.asp" compiled into memory, rather than using the one located in the
current directory. I have found this to be true even if "UniquePackages 1"
is placed in the configuration file.
I believe that documents are compiled into packages whose namespace is
constructed from their file name. If the file name is similar (even if the
desired behavior is to load them from a different directory) the one in
memory is used first. This similarity will often occur because the files
are loaded from the @INC, the Global directory, or because their package
names are build from a relative rather than absolute file name.
SOLUTION:
$Response->Include( $Server->MapPath("./header.asp") );
This forces the document to be cached(?)/compiled(?) using the absolute
filename. When combined with the "PerlSetVar UniquePackages 1", you should
get your desired behavior.
This is only a theory - Joshua can offer a definitive answer to my reasons
"why" above. However, this solution appeared to satisfy my needs.
JL
------
John D. Leonard II, Associate Professor Phone: 404/894-2360
School of Civil and Environmental Engineering FAX: 404/894-2278
Georgia Institute of Technology http://traffic.ce.gatech.edu
Atlanta, GA 30332-0355 mailto:[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]