if (!(file_exists(http://mysite.com/images/thumbnail_1286954822.jpg))) { $filefound = '0'; }
neden bu işe yaramaz?