On Saturday 09 February 2002 00:17, [EMAIL PROTECTED] wrote:
> Thanks for the response, but those are just like $DOCUMENT_ROOT, they
> provide paths in the server, I need what is showing up as the URL in the
> browser - i.e. http://www.domain.com/script.php - or if there is no domain,
> to give me
I'd say you should store the base url of your site in a variable somewhere.
then append the REQUEST_URI and you have the url.
or ..
you take the SERVER_NAME, SERVER_PORT and REQUEST_URI ..
and you might need some other variables to make it recognize SSL and
prefix with httpS ..
bvr.
>How
al Message-
From: Matt Williams [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 08, 2002 1:00 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP] determining script url
> Hi all,
> How can I get the full URL of the currently running script?
> $DOCUMENT_ROOT is not wh
> Hi all,
> How can I get the full URL of the currently running script?
> $DOCUMENT_ROOT is not what I need, instead I need the url (be it
> domain if exists, or ip if not). $SERVER_NAME works but if a
> domain isn't paired with the server, I could get some useless
> information (right?).
$S
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 08, 2002 3:37 PM
To: [EMAIL PROTECTED]
Subject: [PHP] determining script url
Hi all,
How can I get the full URL of the currently running script? $DOCUMENT_ROOT
is not what I need, instead I need the url (be it domai
Hi all,
How can I get the full URL of the currently running script? $DOCUMENT_ROOT is not what
I need, instead I need the url (be it domain if exists, or ip if not). $SERVER_NAME
works but if a domain isn't paired with the server, I could get some useless
information (right?).
Thanks,
Sean
6 matches
Mail list logo