Error in the error logs..
Posted: Fri Aug 20, 2004 6:23 pm
I was looking at my sites error logs and found two recurring errors.
PHP Warning: No ending delimiter '/' found in /blah/search.php on line 102
PHP Warning: No ending delimiter '/' found in /blah/search.php on line 74
Unfortunatly regx are not something I'm good at. These two lines were probably hacked from an example until they worked the way I wanted them to...
So whats wrong with them?
PHP Warning: No ending delimiter '/' found in /blah/search.php on line 102
PHP Warning: No ending delimiter '/' found in /blah/search.php on line 74
Code: Select all
//Line 102:
if (!preg_match ("/[^a-zA-Z0-9 +:-()]", $val))
// line 74
if (!preg_match ("/[^a-zA-Z0-9 +:-]", $val))So whats wrong with them?