PDA

View Full Version : Anyone got 1.5 to work with IIS


stevehof
28th of December 2003 (Sun), 12:58
Anyone got EE 1.5 to work on MS IIS web server running on XP pro? I'd like to upgrade to 1.5 but I like to develop on my local PC. I got 1.5 installed but the editor page shows the following error on the top of the page.

Notice: Undefined index: REQUEST_URI in c:\inetpub\wwwroot\gallery2\fetchsettings.php on line 124

Notice: Undefined index: QUERY_STRING in c:\inetpub\wwwroot\gallery2\fetchsettings.php on line 125

Also, when I try to enter an exhibition, my computer hangs and I have to exit IE...

jose_bonifacio
30th of December 2003 (Tue), 11:36
Hey Steve. How are you? I have the same setup you mentioned in your post and work just fine. Not about the error you are getting thought. What I did was, I had version 1.22 then decided to start from scratch. So, I installed from the beginning and then applied the upgrades one by one. Everything works fine.

I will try to look your error up when I get home.

JB..

sherritp
5th of January 2004 (Mon), 22:12
There are a number of server variables that Apache defines that IIS does not. Two of them are REQUEST_URI and QUERY_STRING. In researching this I found a useful website listing the variables defined by each:
http://php.weblogs.com/Apache_IIS

Here's a guess at what the corrected code should look like--it gets rid of the errors at least!


$HTTP_SERVER_VARS['REQUEST_URI'] = ( isset($HTTP_SERVER_VARS['REQUEST_URI']) ? $HTTP_SERVER_VARS['REQUEST_URI'] : $HTTP_SERVER_VARS['SCRIPT_NAME'] . (( isset($HTTP_SERVER_VARS['QUERY_STRING']) ? '?' . $HTTP_SERVER_VARS['QUERY_STRING'] : '')));

$scripturl = $HTTP_SERVER_VARS['HTTP_HOST'] . $HTTP_SERVER_VARS['REQUEST_URI'];

if (isset($_SERVER['QUERY_STRING']))
{
$query = $HTTP_SERVER_VARS['QUERY_STRING'];
}
else
{
$query = '';
}