I would like to display them all on the same page but once you set a header, you can't then set another one for a different content type. Is there an easy way round this?
Code: Select all
loop going through different parts being read{
$type = "image/jpeg"; // or image/gif or image/png or text/plain
$file = "some ascii string";
header("Content-type: $type");
echo($file);
}Code: Select all
echo '<img src="see_the_file.php?type='.$type.'&file='.urlencode(base64_encode($file)).'" />