Ver Mensaje Individual
  #4 (permalink)  
Antiguo 05/03/2010, 23:20
thezzin
 
Fecha de Ingreso: septiembre-2008
Mensajes: 350
Antigüedad: 15 años, 7 meses
Puntos: 31
Respuesta: Problema con Script

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+&amp;publisherGuard=&amp;publisherGuard=&amp;auto_play=true&amp;start_volume=25&amp;hide_chat=true&amp;backgroundImageUrl=http://s.justin.tv/jtv_user_pictures/competitiveonline-320x240-4.jpg&amp;hostname=www.justin.tv&amp;publisherTimezoneOffset=240&amp;force_adotube=true&amp;consumer_key=FiJpJu0rK7WDAFDDTvZ3g&amp;auto_play=true&amp;amp;consumer_key=FiJpJu0rK7WDAFDDTvZ3g&amp;auto_play=true&amp;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

-
__________________
╬-----╬
║☺₧☻║
╬-----╬

Última edición por thezzin; 05/03/2010 a las 23:30