I have a simple statement below:
if(file_exists('/images/alum/'.$profile['pic']))
echo '/images/alum/'.$profile['pic'];
else echo '/images/user_default.jpg';
The file is there but it's always going to the default image. What have I got wrong?
./images/alum/...<a href=''></a>and other HTML tags). After reading about it, you should understand and be able to tell when (and why) to use./images/,images/or/images/.