Avatar of Alfahane
Alfahane
 asked on

Same include file for multiple websites in classic ASP on IIS 6

How do I let several websites on my server access the same include-file? I want my websites to access the same file so that central functions do not have to be uploaded to each and every /public_html/

Web DevelopmentMicrosoft IIS Web Server

Avatar of undefined
Last Comment
Alfahane

8/22/2022 - Mon
epochasset

Standard practice would be to create a directory 1 level up from each site, give the users the sites run as access to that directory, and when doing includes use relative paths.  For example, ../includes  would refer to a 'include' directory up one folder, and when doing the includes use   ../includes/whatevercodefile.php, etc.
ASKER CERTIFIED SOLUTION
epochasset

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Alfahane

ASKER
Is it possible to give access to:

c:\\websites\includes\

while run the websites at

c:\\websites\website1\public_html\
c:\\websites\website2\public_html\
c:\\websites\website3\public_html\
....

?

I dont know how to do this
Your help has saved me hundreds of hours of internet surfing.
fblack61