mod_layout at scripts
Aaz <[email protected]> Sat, 27 Mar 2004 20:14:51 +0200
| Newsgroups | gmane.comp.apache.mod-layout |
|---|---|
| Message-ID | <[email protected]> |
Hello,
i have tonns of scripts like this one:
<?php
header("Content-Type: image/png");
$string = $_GET['text'];
$im = imagecreate(300,300);
$orange = imagecolorallocate($im, 220, 210, 60);
$px = (imagesx($im) - 7.5 * strlen($string)) / 2;
imagestring($im, 3, $px, 9, $string, $orange);
imagepng($im);
imagedestroy($im);
?>
So, this is PHP script producing image.
Are there any ways to stop mod_layout inserting headers&footers in
such scripts?
--
Best regards,
Aaz mailto:[email protected]