Update whois.class.php

ereg and split function has been DEPRECATED as of PHP 5.3.0.