Very bizzare error

    Date: 07/14/06 (PHP Community)    Keywords: no keywords

    I just encountered the strangest error ever:

    Parse error: syntax error, unexpected ')', expecting T_PAAMAYIM_NEKUDOTAYIM in /home

    The code in question:

    ...
    else if(empty($password1) || empty($password2) || $password1 != $password2)
    	$message = "Password field may not be empty, and both fields must match";
    else if(ereg('[^A-Za-z0-9]', $fname) || empty($fname))
    ...
    


    The interpreter indicated the error was on the line with eregi - swapping the function calls (switch eregi with empty) eliminated the error. I have no idea what might have caused the error or even what it means. Any clues? Thanks.

    Source: http://community.livejournal.com/php/470119.html

« I was wondering || register_globals=off »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home