Parsing URL's with Apache and PHP

From: Date: Mon, 01 Mar 2004 15:49:09 +0000
Subject: Parsing URL's with Apache and PHP
Groups: php.general 
Request: Send a blank email to php-general+get-179167@lists.php.net to get a copy of this message
I'm trying to setup a system where I can parse the entire URL that is given in the address bar of the broswer. My intentions are to make use of the parse_url() function supplied in PHP, but I cannot find a way to get the full address requested. Example: http://bcelenza.somedomain.com/index.php?page=blah Are there variables or methods with apache I can use to get this entire address? All I'm seeing is the HTTP Referrer and some other _SERVER vars that do not give me the whole address. The reason I am trying to do this is to parse the address bcelenza.somedomain.com to return the subdomain, bcelenza. Any ideas are certainly appreciated. Thank you, Brian

« previous php.general (#179167) next »