Jump to content
Fórum Script Brasil
  • 0

PHPWarning: getimagesize(): Filename cannot be empty in


Bianchine1
 Share

Question

Pessoal, Boa Tarde!

Estou com este erro em minha página após a migração de hospedagens: ""PHPWarning: getimagesize(): Filename cannot be empty in""

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

<?PHP
	$photo_size = getimagesize("$photo");
	echo $photo;
?>	
<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>

 

 <td width="180" align="right" valign="middle"><?
        $thumbnail = "../img/caes/".$arCao["dsFotoCao"];
        $photo     = "../img/caesmaior/".$arCao["dsFotoMaiorCao"]; 
        $thumb_image_size = getimagesize($thumbnail);
        $image_size = getimagesize($photos_dir.trim($photo));
        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]."  width=\"138\" height=\"104\" border=0 class=\"foto_cao_g\"></a>";
        ?></td>

E em toda minha página aparece o erro:

Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/bullmountain/public_html/site/cao.php on line 161

 

Edited by Bianchine1
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Forum Statistics

    • Total Topics
      149.6k
    • Total Posts
      646.2k
×
×
  • Create New...