[Xitami] Aliases and PHP

Francis Turner xitami@lists.xitami.org
Tue, 26 Feb 2002 14:21:09 +0100


Jim Hadfield wrote:

>Francis,
>
>I run Xitami on my NT 4.0 server, so the case sensitive part should not come
>into play.  Although I do watch case anyhow.  An old *nix habit.
>
>There are no problems addressing html in the alias directory address, the
>only problem I have found is addressing php in the alias.
>
Just one thought. How does PHP know where the page is? I'm guessing that 
environment variables such as DOCUMENT_ROOT will not be pointing to a 
useful place.

What happens if you create a dummy PHP document in a directory that 
corresponds?

E.g. say I have http://website/alias/myscript.php

Where Alias is mapped to c:\alias\ but the standard webpage root is 
c:\xitami\webpages\

What happens if you create a directory and file 
c:\xitami\webpages\alias\myscript.php which prints something like "HI 
you made to the DUMMY page"?

Do you still gte a blank or do you get the "DUMMY" message?

Francis

-- 

...if the US Government were ever to get really serious about Internet 
security, the top players in Microsoft's management hierarchy would find 
themselves handcuffed, blindfolded, led onto a tarmac within some obscure 
Air Force base, and shot.
-- Thomas C Greene (http://www.theregister.co.uk/content/55/23223.html)