chiedo scusa...
ho trovato errore:

non mettevo
$testo =
davanti.