Se non crei l'oggetto thumbnail, non lo puoi usare!
HTHCodice PHP:
require_once('thumbnail.class.php');
$thumbnail = new thumbnail; // <---- DEVO creare l'oggetto thumbnail, per poi poterlo 'usare' !
$t = $_FILES["file$k"]['tmp_name'];
$sz = $_FILES["file$k"]['size'];
$n = $_FILES["file$k"]['name'];
$dest = "../img/immagini/";
$smlImage = $thumbnail->generate($t, $n, $dest."/TB", 'TB_'.$n, 100);
Zappa