plutomed Posted August 9, 2007 Share Posted August 9, 2007 Warning: eregi() [function.eregi]: REG_EBRACK in /home/plutomed/public_html/includes/templates/templates.php on line 297 function spamcheck($field) { //eregi() performs a case insensitive regular expression match if(eregi("<a",$field) || eregi("[url",$field)) { return TRUE; } else { return FALSE; } } Could anyone tell me why I am getting this error? Quote Link to comment Share on other sites More sharing options...
lemmin Posted August 9, 2007 Share Posted August 9, 2007 Your "[" is being parsed as something. use: if(eregi("<a",$field) || eregi(chr(91) . "url",$field)) Quote Link to comment Share on other sites More sharing options...
effigy Posted August 9, 2007 Share Posted August 9, 2007 Use \[. Quote Link to comment Share on other sites More sharing options...
plutomed Posted August 9, 2007 Author Share Posted August 9, 2007 Fixed thanx Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.