Re: which function can do so ?

From: Date: Sun, 04 Aug 2002 07:29:50 +0000
Subject: Re: which function can do so ?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-111052@lists.php.net to get a copy of this message
Have a look at the predefined variables in PHP... particularly the $_SERVER array. http://www.php.net/manual/en/reserved.variables.php#reserved.variables.serve r I think you'll want $_SERVER['HTTP_HOST'], but it will depend on your PHP version, server environment, etc etc. Justin French on 04/08/02 5:11 PM, Ryan (ryankwokit@hongkong.com) wrote: > I am exactly a beginner of php. This question may be easy. > I have a php program which want to achieve the url from browser. > e.g. webmail.xxx.com > > then how the index.php is able to know it is xxx.com ?? > which function in php can do so?? >

« previous php.general (#111052) next »