whats the purpose of this? inputting it to a mysql database? flat file? I am just curious why you need the ip with out decimals.
Um on the other note, you could try the following,
PHP Code:
$ip = $_SERVER['REMOTE_ADDR'];
$exploded_ip = explode('.',$ip);
$final_ip = implode('',$exploded_ip);
__________________
AMW_Drizz
Dev Machine:: Apache 2.2.6 PHP 5.2.6 MySQL 5.1
|