private function safe_filename($filename) { return preg_replace('/[^0-9a-z\\.\\_\\-]/i', '', strtolower($filename)); }