if (!preg_match("/^".preg_quote($thumbname)."/",$item))
preg_quote will escape special characters. But John's suggestion is better.
pete M wrote:
could someone explain what this bit of code does please...
if (!preg_match("/^".$thumbname."/",$item)) { }
tia PEte
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php