Global include implications :: relative vs physical :: local vs remote dev environement?

J

jason

What is the best way to handle global includes for 3 subwebs that may at
various times consume similiar include files such as ENQUIRY FORMS.

I ask this question as I now have the oppportunity to control sub webs more
tightly on my new host via virtual director and wish to improve the folder
structure and code on my various sites.

However, I am concerned with the implications for the PHYSICAL and RELATIVE
file path options.

For instance, my host says I can use a physical root
m:\net\users\acc101\html\

....but I don't understand if this path changes the deeper you go into the
subwebs. For instance, will the FORM INCLUDE inside the /INCLUDES FOLDER:

eg <!--# virtual includes="m:\net\users\acc101\html\includes\form.INC"-->

....always be written this way in code no matter where you are in the
subweb(s) folder structure or will I have to use some form of
server.variables to extract the
locaiton of the global include folder in the root and then re-write the
path.

I am also concerned with the testing implications on my local drive which
uses http://localhost/ ...It appears I would have to manually re-write the
paths when I take live.

I probably have not explained this clearly but I need help in working out
how to:

- consume global includes via my subwebs
- Which is better - relative or absolute - I am gravitating towards absolute
- Implications for local testing environment...I cannot use my host's root
path as it is different


Appreciate help!
Jason
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top