Page 1 of 1

[SOLVED] How to find URL.

Posted: Sun Jan 04, 2004 7:03 am
by lazersam
Hi all

Does anyone know how to get the "http://www...." address? I know the $DOCUMENT_ROOT gets the path but I need the http address.

Regards

Lawrence.

Posted: Sun Jan 04, 2004 7:41 am
by lazersam
$name = $_SERVER['HTTP_HOST'];

I found it :)

Posted: Sun Jan 04, 2004 11:12 am
by JAM
Good job. ;)