PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
lazersam
Forum Contributor
Posts: 105 Joined: Sat Nov 15, 2003 4:07 am
Location: Hertfordshire, UK
Post
by lazersam » Sun Jan 04, 2004 7:03 am
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.
lazersam
Forum Contributor
Posts: 105 Joined: Sat Nov 15, 2003 4:07 am
Location: Hertfordshire, UK
Post
by lazersam » Sun Jan 04, 2004 7:41 am
$name = $_SERVER['HTTP_HOST'];
I found it
JAM
DevNet Resident
Posts: 2101 Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:
Post
by JAM » Sun Jan 04, 2004 11:12 am
Good job.