molto brutto quello che hai scritto no buono

$stringa_elenco_albums.=include("albums/$nome_album/testo.txt");
VVoVe: VVoVe:

non puoi mettere un include dentro uan variabile

for ($i=0; $i<$tot; $i++)
{
$stringa_elenco_albums .="quello che vuoi";
include("albums/".$i."/testo.txt");
$stringa_elenco_albums .="quello che vuoi";

}