You can do this from one script provided that you determine whether you are providing HTML or an image before writing your headers to the browser and then write the appropriate header for the content you are sending. I have pages that present statistical information and also generate graphs using GD::Graph from a single script. The key is to generate your response before sending the headers so that you know what type of response you are sending.
--- print map { my ($m)=1<<hex($_)&11?' ':''; $m.=substr('AHJPacehklnorstu',hex($_),1) } split //,'2fde0abe76c36c914586c';
In reply to Re: Content-type: html and images ?
by pfaut
in thread Content-type: html and images ?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |