I need to convert convert a python function to php.
the function gets a dotted ip address and convert it to long integer.
python code: return struct.unpack('L',socket.inet_aton(ip))[0]
Can someone give me some ideas what functions i should use to change it to php code.
I tried to use ip2long() and unpack() but i am getting a different number.
Thanks