public function deletarGc($arquivo) { // echo 'teste'; $string = (string) @file_get_contents($arquivo); $array = Sessao::unserialize_session($string); if (isset($array['foto'])) { if ($array['foto'] != '') { $caminho = PASTA_IMAGENS . 'sessao' . SEPARADOR . $array['foto']; if (file_exists($caminho)) { unlink($caminho); } } } }