Here's my problem. I've got this bit of code here:
$IMAGES->imagedir = "/path/to/images";
$imageName = "myPic.jpg";
$imageFile = $IMAGES->imagedir."/$imageName";
if (file_exists($imageFile)) {
print "<img src=\"$imageFile\">";
} else {
print "No image there!";
}
However, even if /path/to/images/myPic.jpg exists, file_exists() returns FALSE. But if I use:
print "<img src=\"$imageFile\">";
the image is printed just fine.
What am I missing?