Hi,
I am trying to find the existence of the file
But the name of the file is dynamically genearated.
if (file_exists($UserName1)):
?>
<img src="../MemberPhoto/<?echo $UserName1?>" height=125 width=125 border=0>
<?else:?>
<img src="../MemberPhoto/NoMemberPhoto.jpg" height=125 width=125 border=0 alt="Member Photo Not Available">
<?endif;?>
Here the value of variable UserName1 will be changing.
wher as the function file_exists expects a string arguemnt.
It is not detecting the file (even though it exists)
I tried
if (file_exists("" . $UserName1)):
but no use.
Pls Help.
Cheers,
Raghu