[Xerte] XOT install - down the rabbit hole

Patrick Lockley Patrick.Lockley at nottingham.ac.uk
Tue Dec 1 14:42:48 GMT 2009


I just googled and got

 

http://davidwalsh.name/iis-php-server-request_uri

 

Which has the same code in, but doesn't explain why IIS fails.

 

We've definitely installed in on IIS before - Ron isn't one of yours
IIS?

 

But the php page says 

 

"The *only* way to make Request_URI work as a 100% Apache-Compliant
server variable on IIS/Windows is to use an Isapi Filter - as documented
at http://neosmart.net/blog/archives/291 . The various steps mentioned
below *completely* fail when a rewrite engine is employed, since IIS
will *never* return a non-existent path (i.e. the actual pretty-URI
used) via its server variables. 

This also applies to accessing index.php via a folder.
For instance, calls made to /folder/ will appear as /folder/index.php
and not /folder/.

The fix is to use the ISAPI filter provided at
http://neosmart.net/blog/archives/291

You don't have to modify any of the actual scripts once this filter is
in place - it automatically intercepts calls to REQUEST_URI and replaces
them with the actual user-entered path."

 

Which is a bit erm.........

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 01 December 2009 11:01
To: Xerte list
Subject: RE: [Xerte] XOT install - down the rabbit hole

 


Tested a few variations and seems to be good.
Checked the install files and that seems to be the only instance of
REQUEST_URI.
Not sure if those additional lines beggar anything on the Unix/Linux
side of things.

Thanks Patrick.

Dave



________________________________

From: d_b_burnett at hotmail.com
To: xerte at lists.nottingham.ac.uk
Subject: RE: [Xerte] XOT install - down the rabbit hole
Date: Mon, 30 Nov 2009 10:13:03 -0500


Tarnation!
Found it. I must be one of the few working off IIS or something.
IIS has an issue with REQUEST_URI.
It just silently fails.

I added this to upload.php:

if (!isset($_SERVER['REQUEST_URI']))
{
$_SERVER['REQUEST_URI'] = substr($_SERVER['PHP_SELF'],1 );
if (isset($_SERVER['QUERY_STRING'])) {
$_SERVER['REQUEST_URI'].='?'.$_SERVER['QUERY_STRING']; }
}


Away to the races...






________________________________

Subject: RE: [Xerte] XOT install - down the rabbit hole
Date: Mon, 30 Nov 2009 14:12:57 +0000
From: Patrick.Lockley at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk

Anywhere after <?

 

And before ?>

 

Click on the link in question on the LHS and then look in the lower box
on the RHS

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 30 November 2009 14:12
To: Xerte list
Subject: RE: [Xerte] XOT install - down the rabbit hole

 


Thanks Patrick.
Where in upload.php should the line go and where should it appear in
interface.
Tried it and got nothing on screen I could see. 

________________________________

Subject: RE: [Xerte] XOT install - down the rabbit hole
Date: Mon, 30 Nov 2009 13:57:16 +0000
From: Patrick.Lockley at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk

Did you put the print_r($_SERVER) into the upload page?

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 30 November 2009 13:45
To: Xerte list
Subject: RE: [Xerte] XOT install - down the rabbit hole

 

 

>It only appears "truncated" as the upload data is provided in other
variables (rlovariable for example).

 

Ah. Thanks.

 

  

>What did fiddler show you?

http://www.hipgnosys.com/xerte_ot/index.php
http://www.hipgnosys.com/xerte_ot/edit.php?template_id=9
http://www.hipgnosys.com/xerte_ot/USER-FILES/9-Dave-Nottingham/preview.x
ml?myvar=1259588415664
http://www.hipgnosys.com/xerte_ot/modules/xerte/engine/upload.php?path=U
SER-FILES/9-Dave-Nottingham/media/

 

________________________________

Windows 7: I wanted simpler, now it's simpler. I'm a rock star.
<http://www.microsoft.com/Windows/windows-7/default.aspx?h=myidea?ocid=P
ID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_myidea:112009> 

 

________________________________

Windows 7: It works the way you want. Learn more.
<http://www.microsoft.com/Windows/windows-7/default.aspx?ocid=PID24727::
T:WLMTAGL:ON:WL:en-US:WWL_WIN_evergreen:112009v2> 

 

________________________________

Bing brings you maps, menus, and reviews organized in one place. Try it
now.
<http://www.bing.com/search?q=restaurants&form=MFESRP&publ=WLHMTAG&crea=
TEXT_MFESRP_Local_MapsMenu_Resturants_1x1>  

________________________________

Get gifts for them and cashback for you. Try Bing now.
<http://www.bing.com/shopping/search?q=xbox+games&scope=cashback&form=MS
HYCB&publ=WLHMTAG&crea=TEXT_MSHYCB_Shopping_Giftsforthem_cashback_1x1> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20091201/a8c5896e/attachment.html


More information about the Xerte mailing list