Ciao a tutti.
Devo personalizzare il seguente codice che legge file mp3 per fare in modo che appaia un lettore flash di file flv.

Il codice originale è

<?php

$showplayercode = "<OBJECT classid=\"clsid27CDB6E-AE6D-11cf-96B8-444553540000\"
codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" WIDTH=\"290\" HEIGHT=\"24\" id=\"player";

if (isset($_GET['p'])) {

if ($_GET['p']!="episode") { //This IF avoids notice error in PHP4
$showplayercode .= "$recent_count";

}
}

$showplayercode .= "\" ALIGN=\"\">

<PARAM NAME=movie VALUE=\"components/player/player.swf?FlashVars=&amp;soundFile=$url$upload_di r$file_multimediale[0].mp3&amp;bg=0xf8f8f8&amp;leftbg=0xeeeeee&amp;lefti con=0x666666&amp;rightbg=0xcccccc&amp;rightbghover =0x999999&amp;righticon=0x666666&amp;righticonhove r=0xffffff&amp;text=0x666666&amp;slider=0x666666&a mp;track=16777215&amp;border=0x666666&amp;loader=0 xffffcc&amp;\">

<PARAM NAME=quality VALUE=high>

<PARAM NAME=bgcolor VALUE=#FFFFFF>

<param name=\"wmode\" value=\"transparent\">

<EMBED src=\"components/player/player.swf?FlashVars=&amp;soundFile=$url$upload_di r$file_multimediale[0].mp3&amp;bg=0xf8f8f8&amp;leftbg=0xeeeeee&amp;lefti con=0x666666&amp;rightbg=0xcccccc&amp;rightbghover =0x999999&amp;righticon=0x666666&amp;righticonhove r=0xffffff&amp;text=0x666666&amp;slider=0x666666&a mp;track=16777215&amp;border=0x666666&amp;loader=0 xffffcc&amp;\" quality=high bgcolor=#FFFFFF wmode=\"transparent\" WIDTH=\"290\" HEIGHT=\"24\" NAME=\"Streaming\" ALIGN=\"\" TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\"></EMBED>

</OBJECT>";

?>

Io ho provato a personalizzarlo così:

<?php

$showplayercode = "<OBJECT classid=\"clsid27CDB6E-AE6D-11cf-96B8-444553540000\"
codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" WIDTH=\"290\" HEIGHT=\"24\" id=\"player";

if (isset($_GET['p'])) {

if ($_GET['p']!="episode") { //This IF avoids notice error in PHP4
$showplayercode .= "$recent_count";

}
}
echo
'
<script type="text/javascript" src="swfobject.js"></script>

<script type="text/javascript">
var so = new SWFObject('flvplayer.swf','mpl','470','320','9');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addParam('flashvars','soundFile=$url$upload_dir $file_multimediale[0].flv');
so.write('player');
</script>
';

?>


L'errore è il seguente:
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /web/htdocs/www.nexusmultimedia.it/home/components/player/flvplayer.php on line 18

Mi sapete dare una mano?

Grazie

JK