Is there any way to have PHP detect a corrupted image?

后端 未结 6 1004
余生分开走
余生分开走 2020-12-18 07:17

Is there any way to have PHP determine whether an image file is corrupted and will not be able to display properly?

I\'ve tried to check with fopen and

6条回答
  •  离开以前
    2020-12-18 07:53

    if the files are there on your server check using file_exists function in php

    http://php.net/manual/en/function.file-exists.php

提交回复
热议问题