Help: About IPV4 & IPV6 notation convert in PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
cnpanda
Forum Newbie
Posts: 1
Joined: Sun Mar 07, 2010 11:43 pm

Help: About IPV4 & IPV6 notation convert in PHP

Post by cnpanda »

Hi all,

When I check the IP of my machine running on Win7, it shows IPV6 format like "fe80::298:8a22:27fe:2bea8%4",

how can I convert this IPV6 format into an old IPV4 format like "192.168.1.1" ?

or how can I get IPV4 notation directly using PHP program?

thanks
Post Reply