Re: Vars to use in stats program

From: Date: Thu, 27 Jun 2002 13:19:09 +0000
Subject: Re: Vars to use in stats program
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-104130@lists.php.net to get a copy of this message
"Php" <webmaster@tececo.com> schreef in bericht news:20020627065644.23078.qmail@pb1.pair.com... > Note: For a couple who seem to be wondering there is a PHP news server which > works in conjunction with this mailing list. The address is: news.php.net > > > Currently collect the following vars in a early stage stats program(Working > on the KISS principle) for my own use. > > Here are the user vars I think I should collect. > > $_SERVER[REMOTE_HOST] > > $_SERVER[HTTP_REFERER] > > $_SERVER[HTTP_USER_AGENT] > > How can I get the remote DNS name? $_SERVER[REMOTE_HOST] gives an ip. > http://www.php.net/manual/en/ref.network.php > What other info could I collect that would be useful? > > For $_SERVER[HTTP_REFERER] does any one have script that will get the > http://www.foobar.com bit out of > http://www.foobar.com/dir1/page1.htm? Some > sort of explode would probably work but I am not sure on this one. http://www.php.net/manual/en/function.parse-url.php > > For $_SERVER[HTTP_USER_AGENT] What is the best way to get seperate OS and > Browser Vars? > > Thanks, > > JJ Harrison > webmaster@tececo.com > www.tececo.com > >

« previous php.general (#104130) next »