| 10:49 pm on Aug 15, 2012 (gmt 0)|
I'm not familiar with IIS but does it not have some type of support for multiple domains and individual domain configuration? In Apache they are called "VirtualHost" containers. I would assume IIS has something similar.
| 3:34 pm on Aug 16, 2012 (gmt 0)|
Yes, it's called a web.config file. But that has nothing to do with PHP. Unfortunately, I think I'm stuck going through the pages and adding an include file or the code manually.
| 7:11 pm on Aug 17, 2012 (gmt 0)|
I found this in the online manual:
|When running PHP on Windows, the configuration values can be modified on a per-directory basis using the Windows registry. |
| 2:39 pm on Aug 18, 2012 (gmt 0)|
I will look into that. I'm not a big fan of editing the registry. What happens if I leave this place and this system get's migrated somewhere, who's going to know I did that. But, it looks like it's my only option.
| 1:30 pm on Aug 29, 2012 (gmt 0)|
Well, there are other options, like installing Apache on the server. You can run Apache on a Windows server.
Also, you may consider posting in the Microsoft IIS Web Server and ASP.NET Forum:
There are some wise folks hanging out in there that may be able to assist or offer better alternatives on how to set up multiple hosts/domains with differing configurations.
| 1:39 pm on Aug 29, 2012 (gmt 0)|
Hahaha, not installing Apache. I've ran both in my years and IIS is just much easier to work with. I posted on the IIS forums before I posted here and got no response. This place taught me PHP so I thought I'd give it a try and it came through with a solution, as usual. I think I'll just end up making and include and putting it in every file. I have multiple find and replace, so I should be able to search for all php files and replace <?php with <?php
include("myFile.php"); Unfortunately, I didn't build this, otherwise there would already be a file included in every php file. I always do that, even though I don't use it most of the time.