Ver Mensaje Individual
  #9 (permalink)  
Antiguo 30/09/2010, 12:26
MuchaDiversion
 
Fecha de Ingreso: enero-2010
Mensajes: 214
Antigüedad: 14 años, 3 meses
Puntos: 4
Respuesta: Dimensiones de SWF externo

Hola.. Ya te di karma por haberte tomado tanto tiempo eh.. Muchísimas gracias, pero no comprendo que no funcione... ¬¬

Mi versión de php es: PHP Version 5.2.14

Sigue devolviendo 0 en ambos valores... No sé qué puede estar pasando... La función es una función prefabricada que se toma como include para convertir a HTML desde BBCODE...

Devuelve en pantalla

Código:
getimagesize(http://blubik.com/locatorswf.swf);--00
Código...

Código PHP:
function DoSwf($bbcode$action$name$default$params$content) {

$max_width 600;
$max_height 800;
$swf_size getimagesize($content);
$ratioh $max_height/$swf_size[1];
$ratiow $max_width/$swf_size[0];
$ratio min($ratioh$ratiow);
// New dimensions
$width intval($ratio*$swf_size[0]);
$height intval($ratio*$swf_size[1]); 
 
return 
"getimagesize(" $content ");--" $width $height '<div class="bbcode_swf">
<embed src="' 
htmlspecialchars($content) . '" quality="high" type="application/x-shockwave-flash" allownetworking="internal" allowscriptaccess="never" autoplay="false" wmode="transparent" width="' $width '" height="' $height '"></embed></div>';
return 
htmlspecialchars($params['_tag']) . htmlspecialchars($content) . htmlspecialchars($params['_endtag']);

Espero no ocasionarles muchas molestias... no sé por qué no funcionará...
__________________
Si tienes ganas de entretenerte un poco, echa un vistazo a Blubik Entretenimiento, por ver de qué va no pasa nada xD