Test of file existence always fails
<pre><code>&lt;?
$user_image = '../images/users/' . $userid . 'a.jpg';
if (file_exists($user_image)) 
{
    echo '&lt;img src="'.$user_image.'" alt="" /&gt;';
} 
else 
{
    echo '&lt;img src="../images/users/small.jpg" alt="" /&gt;';
}
?&gt;
</code></pre>

<p>Hello all, this code is supposed to check for a file and if it doesnt work, display another.
For some reason it is ALWAYS displaying the placeholder and never finds the initial file even though it is there.
Is there something obviously not right here?
Thanks for reading!</p>
