I am trying to resolve all the warnings in my coding to avoid creating log files etc. I put in the following code to prevent the program from trying to "getimagesize" but I still get the following warning:
Warning: getimagesize() [function.getimagesize]: Read error! in /home/mlhwebus/public_html/show/inventory.php on line 115
What did I screw up? seems to me it shouldn't ever get there if there is no $pic.
code below
$pic="../".$row->webpic.$row->imag_url;
$dataloc="../".$row->webpic;
if(file_exists($pic)){
list($width, $height, $type, $attr) = getimagesize($pic);
if($width>300){
smart_resize_image($row->imag_url,"300","0","true",".","$dataloc");
}
}