Re: [PHP] Get domain name

2002-05-23 Thread Jason Wong

On Thursday 23 May 2002 22:00, David Orn Johannsson wrote:
 I need to find out what the domain of the site that I'm running a script
 from, I know this is possable, but I cant find the function in the
 manual.

 the domain would be somthing like www.domain.com
 http://www.domain.com/

Try:

phpinfo();

-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *

/*
Come quickly, I am tasting stars!
-- Dom Perignon, upon discovering champagne.
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Get domain name

2002-05-23 Thread Patrick Lynch

Hi David,

$HTTP_HOST is the variable you are looking for.

Best Regards,
Patrick Lynch.

Optip Ltd, Internet  Mobile Development
Co. Clare, Ireland.
http://www.optip.com/



-Original Message-
From: David Orn Johannsson [mailto:[EMAIL PROTECTED]] 
Sent: 23 May 2002 15:00
To: [EMAIL PROTECTED]
Subject: [PHP] Get domain name


 
I need to find out what the domain of the site that I'm running a script
from, I know this is possable, but I cant find the function in the
manual.
 
the domain would be somthing like www.domain.com
http://www.domain.com/ 
 
Thanks David



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Get domain name

2002-05-23 Thread Dennis Moore

User the global variable
$SERVER_NAME

- Original Message - 
From: David Orn Johannsson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 23, 2002 10:00 AM
Subject: [PHP] Get domain name


 
 I need to find out what the domain of the site that I'm running a script
 from, I know this is possable, but I cant find the function in the
 manual.
  
 the domain would be somthing like www.domain.com
 http://www.domain.com/ 
  
 Thanks David
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php