Afficher un message
Vieux 04/03/2005, 20h30   #6
chris-usenet@roaima.co.uk
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: determing real url on virtual host


> chris-usenet@roaima.co.uk wrote:
>> yawnmoth <terra1024@yahoo.com> wrote:
>> > nothing that was printed out showed the real path - only the

> virtual
>> > paths (or the filesystem paths, which i can't use to construct
>> > alternative url's from).

>>
>> What about using one or more of DOCUMENT_ROOT, REQUEST_URI, and
>> SERVER_NAME?
>>
>> Chris


yawnmoth <terra1024@yahoo.com> wrote:
> the real path: /~adomain/


> DOCUMENT_ROOT: /home/adomain/
> REQUEST_URI: /
> SERVER_NAME: www.adomain.com


> that's when i view the webpage by going to adomain.com.


Yes. All good so far. And when you run the same script via the other
domain...?

> when i view the webpage by going to anotherdomain.com/~adomain/, i get
> the information that i want, but at that point, i already know it, so
> such a lookup is pointless. i want to determine the real path when i'm
> accessing the webpage from adomain.com.


Now I'm totally confused. Two of us have suggested the relevant variables
to you, a combination of which should tell you everything you need to
know about the server name, the request URI and the real script path,
yet this isn't enough.

Somewhere either you've not explained yourself sufficiently or one of
the three of us has misunderstood. Same net effect.

Chris
  Réponse avec citation
 
Page generated in 0,05373 seconds with 9 queries