Thread: BHD Heartbeat
View Single Post
  #6  
Old 12-27-2018, 11:24 AM
Scott is offline Scott
Scott's Avatar
AKA. Panther

Join Date: Sep 2001
Location: Minneapolis, MN
Posts: 10,919

If you're on Linux, the file name needs to have the same case as the map name. Like MapName.bms is not the same as mapname.bms on Linux. If you make sure all the photos are lower case you can use this:

Code:
if(file_exists("./mapimages/".strtolower($Server['MissionFile']).".jpg")) {
	echo "<img src=\"./mapimages/".strtolower($Server['MissionFile']).".jpg" />";
} else {
	echo "<img src=\"./mapimages/nophoto.jpg\" />";
}
__________________

04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq
Reply With Quote