Re: [PHP] IP address enconding

2001-04-19 Thread Don Read
On 19-Apr-01 elias wrote: > No! I can encode IP address to an Integer: > 192.168.0.1 consider as: a.b.c.d > and now the formula goes: > a shl 24 + b shl 16 + c shl 8 + d > > but i was looking for something ready made > PHP3 (returns a float, not an integer): function inet_aton($a) { $

Re: [PHP] IP address enconding

2001-04-19 Thread elias
thanks for the hint! ""Jason Brooke"" <[EMAIL PROTECTED]> wrote in message 02a801c0c8bd$6f5528c0$[EMAIL PROTECTED]">news:02a801c0c8bd$6f5528c0$[EMAIL PROTECTED]... > > http://www.php.net/manual/en/function.ip2long.php > > > > > No! I can encode IP address to an Integer: > > 192.168.0.1 consider a

Re: [PHP] IP address enconding

2001-04-19 Thread Jason Brooke
http://www.php.net/manual/en/function.ip2long.php > No! I can encode IP address to an Integer: > 192.168.0.1 consider as: a.b.c.d > and now the formula goes: > a shl 24 + b shl 16 + c shl 8 + d > > but i was looking for something ready made > > -elias > http://www.kameelah.org/eassoft

Re: [PHP] IP address enconding

2001-04-19 Thread elias
No! I can encode IP address to an Integer: 192.168.0.1 consider as: a.b.c.d and now the formula goes: a shl 24 + b shl 16 + c shl 8 + d but i was looking for something ready made -elias http://www.kameelah.org/eassoft ""Knut H. Hassel Nielsen"" <[EMAIL PROTECTED]> wrote in message [EMAIL PR

Re: [PHP] IP address enconding

2001-04-19 Thread Knut H. Hassel Nielsen
On Thu, 19 Apr 2001, elias wrote: > Hello. > > How can i get the IP address of the user who's browsing my current script? > how can i do it via JavaScript and PHP please. $REMOTE_ADDR should do the trick (use 'phpinfo()' to see for yourself) > And if i got an IP address such 192.168.0.2 > i bel

[PHP] IP address enconding

2001-04-19 Thread elias
Hello. How can i get the IP address of the user who's browsing my current script? how can i do it via JavaScript and PHP please. And if i got an IP address such 192.168.0.2 i believe it will be returned as a stringIs there is a function to encode it to an Integer and the decode it back to a