Hello I am having some problems with these to functions
here it is
<?
if ($game == "HL") {
$map = $gameinfo->serverinfo["map"];
if (file_exists(getcwd()."/images/maps/Half-Life/" . $map . ".jpg")) {
echo "<td rowspan=\"5\"><img src=\"images/maps/Half-Life/" . $map . ".jpg\"></td>";
}
else {
echo "<td rowspan=\"5\"><img src=\"images/maps/Half-Life/map.jpg\" ></td>";
}
}
?>
what it does is always return false and echo the "else" code now if i change $map in the if statment to a filename by hand it will work and echo the image out any ideas i know its not PHP because i use file_exists on the same server on the main page of my site
I also get the same problem if i use is_file
Thanks
Don Gordon