|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Will I don't really know a good way of explaining the problem so I will try my best.
I have a dirctory called "c:\inetpub\wwwroot\gamemain" that I set to 2 virtual Directories "/zelda" and "/gta". (gamemain holds my asp code which is the same no matter what game your on.) Now inside of "/Zelda" and "/gta" I set the directory "c:\inetpub\wwwroot\gamesettings\zelda" (or "c:\inetpub\wwwroot\gamesettings\gta" depending) to a virtual directory called "settings". So the Virtual Paths should be ("/Zelda" OR "/GTA") & "/settings/names.inc" This works until I need to include that "names.inc". It says it can not be found. I know what the problem is, I just need to know how to get around it. The Problem: IIS wont let you call "Includes virtual" from any virual directory that is not on the root. Please Help! and Thanx |
|
#2
|
|||
|
|||
|
Never Mind I Found a fix (kinda)
I created the following code that gets the name of the directory your in.
I use that Directory "Zelda" to link all my objects together. This is not fix for the above but it is a nice "rigger-nig" to get it working. ------------------------------------ Function GetMainPage() Dim DirOnly, j DirOnly = Request.ServerVariables("PATH_INFO") while instr(DirOnly, "/") > 0 DirOnly = Right(DirOnly,len(Dironly) - instr(DirOnly, "/")) wend DirOnly = left(Request.ServerVariables("PATH_INFO") , len(Request.ServerVariables("PATH_INFO") ) - (len(DirOnly) + 1)) while instr(DirOnly, "/") > 0 DirOnly = Right(DirOnly,len(Dironly) - instr(DirOnly, "/")) wend GetMainPage = DirOnly End Function |
![]() |
| Viewing: ASP Free Forums > System Administration > Microsoft IIS > Include Virtual ="../" Problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|