$path_exclude = preg_quote($path_exclude,"/");
if ((ereg('^'.$path_exclude,$path)) || (ereg('^/'.$path_exclude,$path)))