473,772 Members | 2,349 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IIS Virtual Paths

(Summary: is there a way to convert virtual paths to physical paths
using PHP on IIS?)

I hope I'm not covering old ground, but I've spent a couple of hours
looking for this information and have so far failed.

I'm creating a PHP site that will run on IIS (not my choice, so please
don't just say "use Apache"), and I want to implement a virtual
directory system to allow multiple "installati ons" that use a single
code location.
(This would mean that I could update the base code once and all the
sites would "receive" the change, but using virtual paths each site has
it's own configuration files, etc.)

For this to work correctly, I need to be able to convert a virtual path
on IIS into a physical path, and this is where I'm failing to find any
useful information.
Unfortunately I'm coming round to the conclusion that there isn't a way
of doing this.

If you can prove me wrong please, please do...!
Any help greatly appreciated.

Cheers,
Tom :-)

Dec 14 '05 #1
3 1984
Tom Hartland wrote:
For this to work correctly, I need to be able to convert a virtual path
on IIS into a physical path, and this is where I'm failing to find any
useful information.
Unfortunately I'm coming round to the conclusion that there isn't a way
of doing this.

If you can prove me wrong please, please do...!


You are out of luck. It hasn't occurred to anyone yet that such a
function would be useful.

Dec 14 '05 #2
Chung Leong wrote:
You are out of luck. It hasn't occurred to anyone yet that such a
function would be useful.


That's what I was afraid of. :-(

As a get-around, I'm now using an overly complex method of parsing
$_SERVER['SCRIPT_FILENAM E'] to pick up the virtual path, and using an
internal look-up table for the physical path.

Not ideal - but it will have to do.

Anyway, thanks for the information Chung.
Tom :-)

Dec 14 '05 #3
Hello Tom.
I wish my answer can help you.
Use php_iisfunc extension introduced at
http://kromann.info/article.php?Id=11062861865960000

Please consider that i'm not english user,
so my message is too short to explain enough.

GL

Dec 15 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
2092
by: jason | last post by:
I am getting twisted by the possibility that my virtual includes which currently work great on non-domain remote IP will crash if I purchase a domain and point it to one of my designated folders.....Here is the scenario and question:: If my remote webhost at (eg): http://69.8.9.9 ....has a subfolder with with:
2
3228
by: hawks5999 | last post by:
I have setup Software Update Service servers at two locations in our company (SUSserver1 and SUSserver2). I am modifying the web interface on one server so that it will allow me to control both servers from page. The problem I'm running into is that the synchronize and approve functions are both .asp pages that use 'include virtual=' statements. When i activate the link on SUSserver1 that should allow me control SUSserver2 the link...
13
2599
by: Bryan Harrington | last post by:
Hello all.. I'm working on an application that I'd like to use some shared files. Right now my directory structure is: / (root) .../Shared/ .../Reports/ .../Tools/
0
1242
by: Jason Moore | last post by:
I am trying to setup an asp.net web application without using a virtual directory, but when I do, the IDE forces me to use absolute paths so I cannot use root relative paths. Is there a way to setup IIS so that you can use root relative paths without including the name of the virtual directory?
1
1329
by: Ian Turner | last post by:
Hi, Is there anyway, without dropping back to C++ and ISAPI filters, whereby I can route requests to virtual url paths through to the ASPNET runtime and ultimately processed by an HttpModule? Let me give you an example: If I have an website in IIS with host-header of www.mysite.com, no actual content (html, aspx, subfolders etc) but a Global.asax and a web.config
8
3398
by: nick | last post by:
I have a problem and I've been using a cheezy work around and was wondering if anyone else out there has a better solution. The problem: Let's say I have a web application appA. Locally, I set it up as C:\domains\appA. Locally, my IIS root points to C:\domains. I don't point it to C:\domains\appA since if I have an appB under C:\domains I wouldn't be able to get to it. So to access it via my browser I go to localhost/appA.
3
1523
by: Dhruba Bandopadhyay | last post by:
In classic ASP I could write: <!-- #INCLUDE VIRTUAL="Kevin\General\ServiceClass.asp" --> and it would "include" that ASP file into the current ASP file. My web application folder was not stored in C:\Inetpub\wwwroot\ but somewhere else. But the VIRTUAL command let IIS locate files by the IIS virtual folder. Now in ASP.NET this does not work. It complains saying:
8
2602
by: JJ | last post by:
I'm confused about paths. I have a functionn that uses the mappath method, which I think requires a virtual path (is that the same as a relative path?). But this doesn't always work as the path can take the form of the following: 1. /directory/images/xyz.gif (works fine) 2. http://localhost:1234/www.mytestwebsite.com/directory/images/xyz.gif (doesn't work) 3. http:///www.someremotesite.com/directory/images/abc.gif (doesn't work)
23
4615
by: Dave Rahardja | last post by:
Since C++ is missing the "interface" concept present in Java, I've been using the following pattern to simulate its behavior: class Interface0 { public: virtual void fn0() = 0; };
0
9621
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10264
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10106
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10039
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9914
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7461
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6716
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3610
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2851
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.