Re: Re[2]: mod_layout at scripts

"Erik Costlow" <[email protected]> Wed, 31 Mar 2004 10:54:33 -0600 (CST)
Newsgroups gmane.comp.apache.mod-layout
Message-ID <[email protected]>
You can place the following line in your PHP scripts at the top
ob_start()

This turns on output buffering so no data gets sent before the page is
complete. Alternately if you do not want to do this in every page, then do
it in php.ini

Aaz said:
> Hello Erik,
>
> No, this is impossible, because there are thousands of such scripts
> with different filenames.
>
> EC> Yes, you use the LayoutIgnoreURI directive
>
> EC> Aaz said:
>>> 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]
>>>
>>> _______________________________________________
>>> Mod_layout mailing list
>>> [email protected]
>>> http://lists.tangent.org/mailman/listinfo/mod_layout
>
>
>
>
>
> --
> Best regards,
>  Aaz                            mailto:[email protected]
>
> _______________________________________________
> Mod_layout mailing list
> [email protected]
> http://lists.tangent.org/mailman/listinfo/mod_layout
>


-- 
Costlow Corporation
http://www.costlowcorp.com