Modifica così
Codice PHP:
$page preg_replace("{titolo}", (string)$titolo$tpl); 
$page preg_replace("{nome}", (string)$nome$tpl);