I have a file called profile.php which has this bit of code in it
//site thumbnail check////////////
$filename = "sitethumbs/".$user['login'].".jpg";
if (!file_exists($filename)) {
$t->assign('sitethumbs', $filename);
}
/////end////////////
then I have a smarty template (profile.html)
{if ($sitethumbs)}
website thumb({$sitethumbs})
{/if}
The result is=
website thumb
sitethumbs/jasondavis.jpg
So the problem is that it assigns the $filename to $sitethumbs even if the file does not exist, I need it to only do so if the file actually exist, any ideas I have been fighting this for 3 days now with no luck yet