Re: record user domain
| From: | dav | Date: | Thu, 08 Nov 2001 11:24:10 +0000 |
| Subject: | Re: record user domain | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-73862@lists.php.net to get a copy of this message | ||
Yep. Usually Apache is preset to get the user host when the user connects,
so the REMOTE_ADDR should have been already gethostbyaddr'ed by apache. No
need to do it twice, right ?
J
"Andrey Hristov" <ahristov@icygen.com> ha scritto nel messaggio
news:000d01c16846$4ded6ed0$0b01a8c0@ANDreY...
> $REMOTE_ADDR
> or
> $HTTP_X_FORWARDED_FOR (if IP is used)
> record the IP and then setup in cron a script which does gethostbyaddr for
every row. This function may takes some time so it is not
> good to insert it in the script which records the activity
>
>
> Andrey Hristov
> IcyGEN Corporation
> http://www.icygen.com
> BALANCED SOLUTIONS
>
>
> ----- Original Message -----
> From: "Caspar Kennerdale" <caspar@thetuckshop.com>
> To: <php-general@lists.php.net>
> Sent: Thursday, November 08, 2001 12:58 PM
> Subject: [PHP] record user domain
>
>
> > I have a project which uses php server side to records user messages
> > inputteed from a shockwave website.
> >
> > We are recording the name, time and message.
> >
> > What I would like to do is to also record the domain or country the user
(or
> > their isp) is in- ie .com, .co.uk, .bg etc etc
> >
> > Any ideas on how to tackle this?
> >
> > Thanks in Advance
> >
> > Caspar
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-general-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
> >
>