Page 1 of 1

Change working webroot to a subfolder of the current webroot

Posted: Mon Jul 10, 2006 11:59 pm
by stevieSky
I am guessing this is not possible but if someone out there knows a way they would be great!!!

Currently in a software app i am developing i have a number of folders at the root folder1,folder2


html(webroot)
.-----login/login.sm
.
.-----folder1
.
.-----folder2
.
.-----folder3
.


at the moment a client logs in(login.sm) and is directed to folder 1 which uses classes in folder2,folder3 etc

What i want to do is now allow depending on the client to use different versions of my software without having to change all the code to include a new level as follows

.-----login/login.sm
.
.-----version1.------folder1
.
__________.------folder2
.
__________.------folder3
.
.
.-----version2.------folder1
.
........



Is it possible to change the webroot from 'html' to 'version1' or 'version 2' depending on what version the client uses in login.sm

I would greatly appreciate anyone that could give me some solution to this as i have spent a long time trying to get a work around

Posted: Tue Jul 11, 2006 12:19 am
by feyd
If the code is written correctly, it shouldn't matter where the root folder is. It sounds like you didn't write the code in this manner so it could be more difficult. Unfortunately, it's hard to say without understanding how the code is written right now.