php - Make timthumb return error? -
i need have timthumb seek generate image, , if returns error (because domain not on allowed list array) i'll have php next image , seek again.
is there way pre-process timthumb instead of calling image on final location , have fail?
thanks!
solved storing url variable
$image = 'timthumb.php?src=http://www.not-allowed-domain.com/image_example.jpg';
and doing
if (is_array(getimagesize($image))) { // custom functionality }
so if image couldn't generated, getimagesize fail retrieve actual size of , homecoming false.
php timthumb
No comments:
Post a Comment