I'm starting a new project soon, but I'm stumped on something. The base of the system will essentially be a mini framework - but I want to make it as easy as possible to install on a server. Problem is (for me), that it will most likely be placed in sub folders on servers. I don't want to have the user tell the app what folder it's in either.
Take the following:
Code: Select all
Main URL:
http://www.mysite.com
App Folder:
httpdocs/stuff/subFolder/app_in_here
Exmaple URL the app might get
http://www.mysite.com/stuff/subFolder/c ... /var2/var3
Maybe there's a way to find out what the main htdocs folder is, but then it's not always called htdocs.
I could possible take the Request URI, and work forwards on my full app dir structure, stripping things if the exist, but if I had a controller named 'subFolder' for example, that might strip too much...
Yours, Mr Extremely Stumped.