how to check file exist or not in 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
}