View Full Version : Warning: ereg(): REG_EPAREN

04-30-2009, 01:36 PM
Not sure if im in the right section. sorry if im not.

Im getting this error on the front page of my site. Oinkstar * com

Warning: ereg(): REG_EPAREN in /home/voiddcom/public_html/oinkstar.com/engine/modules/online.php on line 409

} elseif (ereg('Mozilla/([0-9].[0-9]{1,2})'. $useragent, $version)) {
$browser_type = "Netscape";
$browser_version = $version[1];

Thats line 409 - 411.

Any thoughts?

04-30-2009, 05:34 PM
Your regex string has an unmatched right parenthesis. Since we can't see the value of $useragent, there's no way to know why.

05-01-2009, 04:00 PM
echo your $useragent