Fpdf How to : if Image is not exist

Usually when you generate a pdf file using Fpdf, you’re getting error if the image is not exist. To solve the problem you can use @getimagesize to check if a resource actually is an image. Example $p = $data[‘photo’]; if (@getimagesize($p)){ //image exist } else...
Continue reading »