<?php
// get the full image path of a film
function getFilmImagePath($title, $imageBasePath = "Assets/Images/Films/") {
$filename = str_replace(' ', '_', $title) . ".jpg";
$fullPath = rtrim($imageBasePath, "/") . "/" . $filename;
return $fullPath;
}
?>