Re[4]: mod_layout at scripts

Aaz <[email protected]> Wed, 31 Mar 2004 21:18:18 +0200
Newsgroups gmane.comp.apache.mod-layout
Message-ID <[email protected]>
Hello Erik,

Yep,  output_buffering = On in my php.ini, but this doesn't helps us
with problem.

ps. mod_layout 3.2.1

EC> You can place the following line in your PHP scripts at the top
EC> ob_start()

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

EC> 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
>>





-- 
Best regards,
 Aaz                            mailto:[email protected]