[Xitami] PHP problems on Xitami server on local machine
stilman.davis at telinco.co.uk
stilman.davis at telinco.co.uk
Tue Oct 31 10:08:21 CET 2006
I don't know whether this is a problem with php 5 or with xitami server.
I want to use a variable that changes from site to site/directory to
directory; this seems to have worked in a previous incarnation of php
with xitami. I would define the root directory with
"http://localhost/thissite" and things seem to have worked.
Unfortunately, if I use the $_SERVER variable now I get the result
"localhost/webpages/thissite". However, this result does not bring up a
page the browser can find. Somehow "webpages" is being delivered. This
makes a mess of any automatic referral to other pages.
If I add "http://" to this new variable created with the $_SERVER value,
no page is served up, in fact Xitami seems to take a long time trying to
figure what is being asked. Without the "http://" the rogue value is
brought straight up. Even if I make up the variable with what I know to
be a valid address, anything with the "http://" fails as a variable, if
I use this variable without the "http://" in a header nothing happens.
I am stumped. Any ideas? Thanks for your help in advance.
Regards,
Stilman Davis
More information about the Xitami
mailing list