Vars to use in stats program
| From: | PHP | Date: | Thu, 27 Jun 2002 07:00:11 +0000 |
| Subject: | Vars to use in stats program | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-104105@lists.php.net to get a copy of this message | ||
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.
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.
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