check file exists in database php code example
Example 1: php check if file exists
if (!file_exists('http://mysite.com/images/thumbnail_1286954822.jpg')) {
$filefound = '0';
}
Example 2: file exist php
if (file_exists($filePath)) {
// todo acction
}