I am using PHP and apache, for some reason Images are refusing to be shown!
PDFs are fine, there are no errors.
Please can someone help!
The code is here:
header('Content-Type: image/png');
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
header("Content-Length: ".filesize('image.png'));
print file_get_contents('image.png');
For some reasons this image doesn't show, but a PDF will.
both files have exactly the same file permissions.
Can anyone help?
Thanks
Andy