$HTTP_HOST
Run a page with on your server & you'll see all sorts of
goodies in there.
- Tim
http://www.phptemplates.org
- Original Message -
From: "Peter Van Dijck" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 25, 2001 7:10 AM
S
hi,
try
$SERVER_NAME
http://www.php.net/manual/en/ref.http.php
regards
attila strauss
> $REQUEST_URI gets me home/dir/index.php
> but I need to get the domain name.
>
> Can't seem to find it anywhere, what's the environment variable for the
> domain name again? Thanks!
> Peter
>
--
PH
$url = sprintf("http://%s/%s";, $HTTP_HOST, $REQUEST_URI);
Cheers,
Maxim Maletsky
-Original Message-
From: Peter Van Dijck [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 25, 2001 8:10 PM
To: [EMAIL PROTECTED]
Subject: [PHP] damn $REQUEST_URI
$REQUEST_URI gets me home/dir/ind
$REQUEST_URI gets me home/dir/index.php
but I need to get the domain name.
Can't seem to find it anywhere, what's the environment variable for the
domain name again? Thanks!
Peter
~~
http://liga1.com building multiple language/culture websites
http://poorb
4 matches
Mail list logo