<PRE><?phpif (ereg("^[0-9]", $_SERVER['QUERY_STRING'])) {echo ip2long($_SERVER['QUERY_STRING']);}else {echo ip2long("24.145.130.71");}?></PRE>