Hi all
I am trying to use get image sizes of images that are stored on the server and data is stored in database.
<?php
//get photos
$sql="SELECT * FROM tbl_gallery_photo";
$result = mysqli_query($dbConn,$sql)or die(mysqli_error($dbConn));
if(mysqli_num_rows($result)>0){
while($row=mysqli_fetch_assoc($result)){
//get image sizes
$image = $shopConfig['url'].'photos/'.$row['p_filename'];
list($width, $height, $type, $attr) = getimagesize("$image");//line 20
echo '<br/>'.$image;
echo '<br/>Width: '.$width;
echo '<br/>Height: '.$height;
}
}
?>
but i get the following error
Notice: getimagesize(): send of 28 bytes failed with errno=104 Connection reset by peer in /home/sites/jasondoyle69.com/public_html/updateImageSize.php on line 20 Notice: getimagesize(): send of 2 bytes failed with errno=32 Broken pipe in /home/sites/jasondoyle69.com/public_html/updateImageSize.php on line 20 Notice: getimagesize(): Read error! in /home/sites/jasondoyle69.com/public_html/updateImageSize.php on line 20
Any help would be appreciated