GD headers for gif, png
Posted: Fri Jul 16, 2004 1:39 pm
Hi
I have this in code :
But only jpeg images are being displayed. Howz that ?
Thanks
I have this in code :
Code: Select all
<?php
switch(strtolower(strrchr($_GET['filename'],".")))
{
case ".gif":header("Content-type: image/gif");break;
case ".jpg":case".jpeg":header("Content-type: image/jpeg");break;
case ".png":header("Content-type: image/png");break;
}
.
.
.
.
?>Thanks