ip = getenv(REMOTE_ADDR); $this->host = gethostbyaddr($this->ip); $this->refer=getenv(HTTP_REFERER); } public function getHost(){ return $this->host; } } ?>