Re: [PHP] Converting IP Address to int value?

2006-01-06 Thread John Nichel
Jay Paulson (CE CEN) wrote: I'm in the process of parsing through a apache access_log file and putting the information into a database. Right now I have the ip addresses going into a database as a character format xxx.xxx.xxx.xxx and then later I'm creating my queries to search for ip

Re: [PHP] Converting IP Address to int value?

2006-01-06 Thread tg-php
I believe this may help: http://uk2.php.net/manual/en/function.ip2long.php It converts the IP address to the 'long' format (which is valid to put into a browser as an address btw). I think 127.0.0.1 and 127.0.0.2 will be sequential in the 'long' format. So if you convert starting address and