Quantcast
Channel: Últimos conteúdos
Viewing all articles
Browse latest Browse all 14190

Migração de Servidor - Erro PHP "getimagesize(): Filename cannot b

$
0
0

Boa Tarde Pessoal!

 

Estou com alguns problemas após realizar a migração de uma hospedagem para Revenda.

 

Quando tento abrir imagens em meu site, me retorna: "Warning: getimagesize(): Filename cannot be empty in"

 

Vem deste código:

<head>
<title><?PHP print($photo);?></title>
</head>

<?PHP
	$photo_size = getimagesize($photo["tmp_name"]);
?>	
<body bgcolor="#FFFFFF" marginheight="0" 
marginwidth="0" leftmargin="0" topmargin="0" 
rightmargin="0">

<img src="<?PHP print($photo); 
?>" <?PHP print($photo_size[3]); 
?> name="photo">

</body>
</html>

A partir deste código que chama:

function fnMostraAlbumNossaFamilia($cd){
	?>
    <table border="0" cellspacing="0" cellpadding="0">
	<tr align="center" valign="top">
	<?
				  if(!$cd){
				  	$cd = 1;
				  }
				  $strSQL = "SELECT * FROM tbFotos WHERE cdGaleriaFoto = $cd ORDER BY dtInclusFoto DESC";
				  $result = mysql_query($strSQL);
				  echo mysql_error();
				  $coluna = 1;
				  while($array = mysql_fetch_array($result)){
				  	$thumbnail = "../img/fotomini/".$array["fileMiniFoto"];
					$photo     = "../img/fotonormal/".$array["fileNormalFoto"]; 
					$thumb_image_size = getimagesize($thumbnail);
					$image_size = getimagesize($photos_dir.trim($photo));
					?>
					<td width="62" class="nome_cao">
					<?
					echo "<a href=\"javascript:photo_open('photo_display.php?photo=".trim($photo)."','".$image_size[0]."','".$image_size[1]."');\"><img src=\"".$thumbnail."\" ".$thumb_image_size[3]." class=\"foto_cao\"></a>";
					?><br>
					<? echo $array["nmFoto"];?>
					</td>
					<?
					if ($coluna < 3){
						$coluna = $coluna + 1;
						?><td width="13"><img src="../img/_.gif" width="13"></td><?
					}else{#if ($coluna < 3){
						$coluna = 1;
						?></tr><tr><?
					}#if ($coluna < 3){
				  }
	?>
	</tr>
	</table>
	<?

Viewing all articles
Browse latest Browse all 14190

Trending Articles