Re: record user domain

From: Date: Thu, 08 Nov 2001 11:39:48 +0000
Subject: Re: record user domain
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-73868@lists.php.net to get a copy of this message
Apache/1.3.12 . Ok, it's possible but on my server it is swtiched off for performance reasons. Since that I prefer using external script running at midnight. Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS ----- Original Message ----- From: "dav" <dav@thecloud.o> To: <php-general@lists.php.net> Sent: Thursday, November 08, 2001 1:40 PM Subject: Re: [PHP] record user domain > I use Apache+php on a linux Cobalt Raq4 server > maybe you are using a different web server ? > J > "Andrey Hristov" <ahristov@icygen.com> ha scritto nel messaggio > news:003701c16847$ef272010$0b01a8c0@ANDreY... > > I'm not sure but on my site I record the $REMOTE_ADDR and it is always a > long. Which I convert to 4 decimal with point > > representation. > > > > Apache/1.3.12 and Apache/1.3.20 , PHP4.0.0, 4.0.4pl1, 4.0.6, 4.2.0-dev > > > > Andrey Hristov > > IcyGEN Corporation > > http://www.icygen.com > > BALANCED SOLUTIONS > > > > > > ----- Original Message ----- > > From: "dav" <dav@thecloud.o> > > To: <php-general@lists.php.net> > > Sent: Thursday, November 08, 2001 1:24 PM > > Subject: Re: [PHP] record user domain > > > > > > > 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 > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > 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 > > > > > > > > > > > > -- > 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 > >

« previous php.general (#73868) next »