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? Link to comment https://forums.phpfreaks.com/topic/64152-solved-eregi-functioneregi-reg_ebrack/ 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)) Link to comment https://forums.phpfreaks.com/topic/64152-solved-eregi-functioneregi-reg_ebrack/#findComment-319716 Share on other sites More sharing options...
effigy Posted August 9, 2007 Share Posted August 9, 2007 Use \[. Link to comment https://forums.phpfreaks.com/topic/64152-solved-eregi-functioneregi-reg_ebrack/#findComment-319718 Share on other sites More sharing options...
plutomed Posted August 9, 2007 Author Share Posted August 9, 2007 Fixed thanx Link to comment https://forums.phpfreaks.com/topic/64152-solved-eregi-functioneregi-reg_ebrack/#findComment-319720 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.