file_exists() does not run
<pre><code>$myfilepath =  SITEROOT."/uploads/vaibhav_photo/thumbnail/".$user_avatar['thumbnail'];
if(file_exists($myfilepath))
{
  echo "file exist";
}
else
{
  echo "file does not exist";
}
</code></pre>

<p>It always goes to else part even though file is present.</p>

<p>if anybody have an alternate option for this in PHP please reply as fast as possible,</p>
