Why won't php header(Content-type: 'image/png') work?
-
I have to present a png image (a certificate) for a training program. Pre-WordPress I modified the header of the calling program (it called a php program) with the below code?
<?php
$im = imagecreatefrompng(“test.png”);header(‘Content-Type: image/png’);
?>Why won’t it work in wordpress?
George
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Why won't php header(Content-type: 'image/png') work?’ is closed to new replies.