On the PHP site you can see "This function has been DEPRECATED as of PHP 5.3.0. Relying on this feature is highly discouraged.", that means you have a newer PHP version. If you follow this link i thing you can find the solution for your problem: php.net/manual/en/function.eregi.php