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