[PHP] Detecting IP address
Does anyone have any idea how i can detect a clients IP address? I've found javascripts on the net but they only work on netscape and only when java is enabled. I need it to work on IE. Thanks! Heidi = Heidi Belal ICQ# 32127109 A bus stops at a bus station. A train stops at a train station. On my desk I have a work station... __ Do You Yahoo!? Find the one for you at Yahoo! Personals http://personals.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Detecting IP address
some loggings: $LogIp1 = getenv(REMOTE_ADDR); $LogIpaddr = gethostbyaddr($LogIp1); $LogIpname = gethostbyname($LogIp1); $LogBrowser = $HTTP_USER_AGENT; $LogReferer = getenv(HTTP_REFERER); Sjoerd van Oosten Digitaal vormgever [EMAIL PROTECTED] Datamex E-sites B.V. http://www.esites.nl Minervum 7368 Telefoon: (076) 5 730 730 4817 ZH BREDA Telefax: (076) 5 877 757 ___ -Oorspronkelijk bericht- Van: Heidi Belal [mailto:[EMAIL PROTECTED]] Verzonden: maandag 19 november 2001 10:58 Aan: js-jive mailing list; Php Onderwerp: [PHP] Detecting IP address Does anyone have any idea how i can detect a clients IP address? I've found javascripts on the net but they only work on netscape and only when java is enabled. I need it to work on IE. Thanks! Heidi = Heidi Belal ICQ# 32127109 A bus stops at a bus station. A train stops at a train station. On my desk I have a work station... __ Do You Yahoo!? Find the one for you at Yahoo! Personals http://personals.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Detecting IP address
Hi Heidi, Does anyone have any idea how i can detect a clients IP address? in PHP: ? echo $REMOTE_ADDR; ? best, Sebastian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Detecting IP address
Use the $HTTP_SERVER_VARS['REMOTE_IP'] variable... At 01:58 AM 11/19/2001 -0800, Heidi Belal wrote: Does anyone have any idea how i can detect a clients IP address? I've found javascripts on the net but they only work on netscape and only when java is enabled. I need it to work on IE. Thanks! Heidi = Heidi Belal ICQ# 32127109 A bus stops at a bus station. A train stops at a train station. On my desk I have a work station... __ Do You Yahoo!? Find the one for you at Yahoo! Personals http://personals.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]