$_SERVER['REMOTE_ADDR'] arriving in IPv6

From: Date: Thu, 18 May 2006 19:22:22 +0000
Subject: $_SERVER['REMOTE_ADDR'] arriving in IPv6
Groups: php.general 
Request: Send a blank email to php-general+get-236421@lists.php.net to get a copy of this message
I'm running PHP 5.1.4 on OS X. When I look at $_SERVER['REMOTE_ADDR'], it seems to contain an ipv6 address rather than an ipv4 one (at present it's giving me 'fe80::1' instead of the usual dotted quad), and that confuses the hell out of things like MySQL's INET_ATON() function. I have ipv6 networking disabled in my network control panel, and my PHP is configured with --disable-ipv6. How can I force it to return only ipv4 addresses? Is there an ini setting somewhere? Thanks, Marcus -- Marcus Bointon Synchromedia Limited: Putting you in the picture marcus@synchromedia.co.uk | http://www.synchromedia.co.uk

« previous php.general (#236421) next »