$kat = htmlspecialchars($kat); $kat = str_replace('.','',$kat); $kat = str_replace('/','',$kat); if ($_GET[file]) { file("$kat/$file1"); }