$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/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://poorbuthappy.editthispage.com online ethnology, up&down


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to