Instead of this:
$filevar = "/images/staunton/{$options_item['base_var']}.gif";
you probably want:
$filevar = $_SERVER["DOCUMENT_ROOT"] . "/images/staunton/{$options_item['base_var']}.gif";
because you probably confused the relative path of your image inside the root document of your page compared to the absolute path of the image in the file system.
Try and comment.
source
share