estas seguro que se esta imprimiendo la variable?
ya viste el código fuente
no seria así:
Código PHP:
<?php
$url = $_SERVER['PHP_SELF'];
$archivo = basename($url);
$aa1 = explode(".",$archivo);
$aa2 = $aa1[0];
?>
<?php
$TheVb = <<<TCODE
<script>
var embed="";
embed= embed + '<object id="live_embed_player_flash" bgcolor="#000000" data="http://www-cdn.justin.tv/widgets/live_embed_player.swf?channel=+$aa2+"id="jtv_player_flash" type="application/x-shockwave-flash" style="visibility: visible;" height="100%" width="100%">';
embed= embed + '<param value="true" name="allowFullScreen" />';
embed= embed + '<param value="http://www-cdn.justin.tv/widgets/live_embed_player.swf" name="movie" />';
embed= embed + '<param value="channel=+$aa2+&publisherGuard=&publisherGuard=&auto_play=true&start_volume=25&hide_chat=true&backgroundImageUrl=http://s.justin.tv/jtv_user_pictures/competitiveonline-320x240-4.jpg&hostname=www.justin.tv&publisherTimezoneOffset=240&force_adotube=true&consumer_key=FiJpJu0rK7WDAFDDTvZ3g&auto_play=true&amp;consumer_key=FiJpJu0rK7WDAFDDTvZ3g&auto_play=true&start_volume=25" name="flashvars" />';
embed= embed + '<param value="transparent" name="wmode" name="allowscriptaccess" name="enablejsurls"name="enablehref" name="allownetworking" />';
embed= embed + '</object>';
document.write(embed);
</script>
TCODE;
echo $TheVb
?>
http://www.php.net/manual/en/languag...syntax.heredoc
-