Login | |
|
 |
Includes redux & stupid mappath tricks... - 4/12/2007 11:06:48 AM
|
|
 |
|
| |
dannyboi
Posts: 2
Score: 0
Joined: 4/12/2007
Status: offline
|
hey vbs peops -- 1st time poster, go gentle on me , im a vbs.com virgin. I have a bunch of asp pages that all reuse the same class code from an include. The files are located in various level dirs throughout the site. mainFile.asp {#include file="blah/blah/classX.asp"} anotherFile.asp {#include file="../../blah/blah/classX.asp"} OneMoreFile.asp {#include file="blah/classX.asp"} I have the class file. ClassX.asp yadda, yadda, reuseable code whenever I attempt to use the funct Mappath(".") from inside ClassX.asp to try to find out where the class file is physically located, it always returns the path to the main calling file, and never the path to the included classX.asp file. How can I dynamically find the path to an includes file from inside the included code itself? (I would like to have the class code reuseable across 15-20 different websites all with totally different directory structures and names. I would prefer to release the code w/o having to hardcode paths into it. If the class were "self detecting' of it's own dir location, my maintainence chores would be much easier. Tnx for any hints,tips, or filthy little trix, Dan
|
|
| |
|
|
|
| |
|
|
 |
|
 |
|
|