Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- IIS Virtual Paths
- Tom Hartland
December 14, 2005, 11:26 am
rate this thread
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 "installations" that use a single
(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
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.
Re: IIS Virtual Paths
That's what I was afraid of. :-(
As a get-around, I'm now using an overly complex method of parsing
$_SERVER['SCRIPT_FILENAME'] 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.
- » Render yourself ou ask someone else to render you?
- — Previous thread in » PHP Scripting Forum