I'm using the GD library to create a header image. It appears from what I've read that you have to include somewhere the line
header("Content-type: image/png;");
I am building a file head.php.inc to be included on each page. But the header in this file does not get called because the content type is already declared to be text/html in the heading of each page. i.e.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Photographer's Studio</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta http-equiv="Content-Language" content="english" />
<link rel="stylesheet" type="text/css" href="main.css" />
</head>
<body>
<?php
//new start for milestone four with php and databases
//include 'includes/conn.php.inc';
//echo "<div class=\"header\">";
include 'includes/head.php.inc';
//echo "</div>";
//echo "<div class=\"content\">";
//require_once 'includes/link.php.inc';
//echo "</div>";
?>
</body>
</html>
So i guess my question is, is there a way to specify more than one content type, or is there another way to do this?