In Php 5.3, ereg() should be replaced with preg_match
better solution is using the preg_match replacement
so
elseif ($depth >= $min_depth && ereg($mask, $file)) {
becomes
elseif ($depth >= $min_depth && preg_match(“/$mask/”, $file)) {
Some Quick Fixes and Resolutions by Linux Enthusiast
In Php 5.3, ereg() should be replaced with preg_match
better solution is using the preg_match replacement
so
elseif ($depth >= $min_depth && ereg($mask, $file)) {
becomes
elseif ($depth >= $min_depth && preg_match(“/$mask/”, $file)) {