Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Apr 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Warning: ereg(): REG_EPAREN

    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
    PHP Code:
    Warningereg(): REG_EPAREN in /home/voiddcom/public_html/oinkstar.com/engine/modules/online.php on line 409 
    PHP Code:
        } elseif (ereg('Mozilla/([0-9].[0-9]{1,2})'$useragent$version)) {
            
    $browser_type "Netscape";
            
    $browser_version $version[1];
        } 
    Thats line 409 - 411.

    Any thoughts?
    Last edited by jayzero1; 04-30-2009 at 12:48 PM. Reason: forogt php boxes

  • #2
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts
    Your regex string has an unmatched right parenthesis. Since we can't see the value of $useragent, there's no way to know why.

  • #3
    Regular Coder sea4me's Avatar
    Join Date
    Jan 2009
    Location
    Damn, I don't know...
    Posts
    390
    Thanks
    11
    Thanked 28 Times in 27 Posts
    echo your $useragent


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •