$answer = "This is easy" // hehe...
if(ereg("[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}$", $ip_nummber))
print "Jupp... this is a valid IP nummber";
else
print "Damn you trying to give me a non valid ip number!!!";
hehe.. this should do the trick..
Andreas