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 ([EMAIL PROTECTED]) 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?? > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

