Foros del Web » Programando para Internet » PHP »

Warning: getimagesize

Estas en el tema de Warning: getimagesize en el foro de PHP en Foros del Web. hola,bueno pues me da un error al visualizar el php con el navegador : Warning: getimagesize( http://sonidomasia.com/cosas/1x06 - Busey y la playa.avi) [function.getimagesize]: failed to ...
  #1 (permalink)  
Antiguo 17/09/2008, 18:32
 
Fecha de Ingreso: octubre-2006
Mensajes: 471
Antigüedad: 17 años, 6 meses
Puntos: 1
Warning: getimagesize

hola,bueno pues me da un error al visualizar el php con el navegador :
Warning: getimagesize(http://sonidomasia.com/cosas/1x06 - Busey y la playa.avi) [function.getimagesize]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home1/sonidom1/public_html/miradivx/juego.php on line 46

Código PHP:
<?
include 'config.inc.php';
include 
'class/funciones.php';
include 
'class/temp.php';
$tiempo_inicio tiempo_carga();
    
$id_get trim($_GET['id']);
    
$nom_categ trim($_GET['name']);


    
    
$select_game M_Query("SELECT id, name, descg, categ, file_dir, img_dir, votos, puntos, tipo_swf, tipo_img, size, width, height FROM juegos WHERE (id = '$id_get') AND (tipo_id = '0' AND active = '1') LIMIT 1");

    if(
mysql_num_rows($select_game) == 1)
    {
        
$juego mysql_fetch_assoc($select_game);
        
mysql_free_result($select_game);
        
$id $juego['id'];
        
$nombre $juego['name'];
        
$categoria $juego['categ'];
        
$descripcion $juego['descg'];
        
$imagen $juego['img_dir'];
        
$swf $juego['file_dir'];
        
$votos $juego['votos'];
        
$puntos $juego['puntos'];
        
$tipo_archivo $juego['tipo_swf'];
        
$tipo_dimensiones $juego['size'];
        
      
        
$valorado = ($votos == 0) ? 'No Valorado' $puntos $votos;
        
        
$titulo $web.' Juego '.$nombre;
        
        
$select_cate M_Query("SELECT id, nombre FROM categ WHERE id = '$categoria' LIMIT 1");
        
$fetch_cat mysql_fetch_assoc($select_cate);
        
        if(!
$mod_rewrite)
            
$_categ '<a href="index.php?modulo=categ&id='.$fetch_cat['id'].'&name='.mod_s($fetch_cat['nombre']).'">'.$fetch_cat['nombre'].'</a>';
         else
            
$_categ '<a href="categoria-'.$fetch_cat['id'].'-'.mod_rew($fetch_cat['nombre']).'.html">'.$fetch_cat['nombre'].'</a>';
           
        
        if(
$tipo_archivo == || $tipo_archivo == 2)
        {
            if(
$tipo_dimensiones == 1)
            {
                   list(
$ancho$alto$tip$atr) = getimagesize($swf);
            }
            elseif(
$tipo_dimensiones == 2)
            {
                           
$ancho $juego['width'];
                        
$alto $juego['height'];
            }
            else
            {
                        
$ancho $width;
                        
$alto $height;
            }
        
          
$file_size = ($tipo_archivo == 1) ? view_size(filesize($swf)) : 'No disponible.';

          
$content .= '<center>
          
         <object classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616" codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab" width="500" height="200" align="middle" id="object1073597165">
          <param name="autoPlay" value="false" />
          <param name="custommode" value="Stage6" />
          <param name="src" value="'
.$swf.'" />
          <param name="movieTitle" value="Line%20Rider%20-%20ReMake%20Believe" />
          <param name="bannerEnabled" value="false" />
          <embed src="'
.$swf.'" width="500" height="200" align="middle" type="video/divx" autoPlay="false" custommode="Stage6" movieTitle="Line%20Rider%20-%20ReMake%20Believe" bannerEnabled="false" pluginspage="http://go.divx.com/plugin/download/" id="embed1073597165"></embed>
        </object>
                    
          
         </center>'
;
          
          
          
$content .= '<br>'.tabla_cont('Juego '.$nombre'<img align="left" src="'.$imagen.'" alt="Flash '.$nombre.'" title="Flash '.$nombre.'" />'.$descripcion.'<br>Valorado: '.round($valorado2).'<br>Categoria: '.$_categ.'<br>Peso del Archivo: '.$file_size);

   

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title><? echo $titulo?></title>
<link rel="StyleSheet" href="imagenes/style.css" type="text/css">

</head>


<body>
<table width="776" border="0" align="center" cellpadding="0" cellspacing="0" height="623">
  <tr>
    <td height="250" background="imagenes/h01.jpg">&nbsp;</td>
  </tr>
  <tr>
    <td background="imagenes/bg.jpg" height="235">
    <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td valign="top">&nbsp;</td>
        <td valign="top">      
        <td valign="top">&nbsp;</td>
      </tr>
      <tr>
        <td width="0" valign="top">
        
          <!-- BLOQUES IZQUIERDA -->
                    

     
         <!-- FIN BLOQUES IZQUIERDA -->

          </td>
            <td valign="top">
        <? 
        
echo $content

        
?>
                
        
        <td width="0" valign="top">
        
        <!-- BLOQUES DERECHOS -->
        
              <?
              
include 'block/menu.php';
              
?>
              <?
              
include 'block/voto.php';
              
?>
         <!-- FIN BLOQUES DERECHOS -->
        
        </td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="138" background="imagenes/f01.jpg">&nbsp;</td>
  </tr>
</table>
<?
    
}
    else
    {
  echo 
'<html>
        <head>
         <title>'
.$titulo.'</title>
          <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
          </head>
          <frameset rows="80, *">
          <frame src="iframe.php" frameborder="0" noresize="noresize" marginwidth="0" marginheight="0">
          <frame src="'
.$swf.'" frameborder="0" noresize="noresize" marginwidth="0" marginheight="0">
          <noframes>
              <body>
                <p>Actualiza tu Navegador porque este no sporta Marcos<br />

                    </p>
                  </body>
              </noframes>
          </frameset>'
;
        
    }
    
}
 else
    {

    }
    
include 
'footer.php';
?>
</body>
</html>
  #2 (permalink)  
Antiguo 17/09/2008, 19:26
Avatar de ElJavista
Colaborador
 
Fecha de Ingreso: marzo-2007
Ubicación: Lima Perú
Mensajes: 2.231
Antigüedad: 17 años, 1 mes
Puntos: 67
Respuesta: Warning: getimagesize

Por más que busqué no encontré donde usas la función: getimagesize
  #3 (permalink)  
Antiguo 17/09/2008, 20:21
Avatar de GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 17 años, 11 meses
Puntos: 2135
Respuesta: Warning: getimagesize

Aparte el error es claro, no existe la imagen (error 404).

Saludos.
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 21:56.