Re: URL output query

From: Date: Mon, 27 Feb 2006 23:24:35 +0000
Subject: Re: URL output query
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-231169@lists.php.net to get a copy of this message
Chris wrote:
Greetings PHP folks, Which PHP function do I use if I want to achieve the following : http://www.somesite.com/gallery/pics.php is the url...how do I get it to read only http://www.somesite.com in the browser address bar without the rest of the directory and filename appearing ?
If you're using php through a webserver then you might find it in one of the $_SERVER variables (create a phpinfo page). If you're not, then probably use parse_url: http://www.php.net/parse_url The second way is probably better and more reliable. -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.general (#231169) next »