function ip2long()
{
//split the ip into pieces
$ip = explode(".",$ip_field);
//count the number of pieces
$q=count($ip);
//create a loop to concatenate the pieces
for ($i=0;$i<=$q;$i++){
if ($i=0){
$your_ip = $ip(0);
}else{
$your_ip .=$ip(i);
}
//show the ip with no '.'
echo $your_ip;
}
hth
bastien