Salve a tutti ragazzi, vi pongo subito il quesito:
Su php.html.it ho trovato uno script che in modo random estrae una stringa da un file di testo.
L'ho adattato a mio interesse modificando le stringhe di testo e facendole diventare degli <object> completi pescati direttamente da YouTube nei link dei miei video.

Il problema è che lo script funziona correttamente ma invece di visualizzare il "mini-video" di YouTube vedo soltanto la stringa di <object>.

Come posso fare?

Aggiungo il codice dello script, il codice dell'<object> non mi sembra il caso metterlo.

Codice PHP:
<?
$videofile 
"video.txt"//Relative path to and the filename of the file that contains your quotes. 
//You should not have to edit anything after this line.  


if ($array = @file("$videofile")) {  
// Build an array with the quotes
$video rand(0count($array)-1);

$ar.= "<div class='quote'>";
//clen the array
$array[$video] = stripslashes(htmlentities($array[$video])); 
//choose a random quote from the array.  
$ar.= $array[$video];
$ar.= "</div>";
echo (
"$ar");
}  
else{
   echo (
"<div class='quote'>Quotes file not found or can not be opened.</div>");  
}
?>
Grazie anticipatamente!