Hello,
$isize = getimagesize ("a_products/$image_location");
$isize[0]=$isize[0]/3;
$isize[1]=$isize[1]/3;
echo "<img src=\"a_products/$image_location\" width=\"$isize[0]\" height=\"$isize[1]\" alt=\"\" border=\"0\" />";
I am pulling $image_location from a database.
This works great as long as the path to the image is valid. If that path doesn't exist I get the following....
Warning: getimagesize(a_products/CDT031.jpg): failed to open stream: No such file or directory
Is there a way I can check to make sure the image exists, without returning a big error to the page?