function cf($dir, $filename, &$array){

perche ce & vicino ad array?