note 83377 added to function.ob-flush

From: Date: Thu, 22 May 2008 19:25:15 +0000
Subject: note 83377 added to function.ob-flush
Groups: php.notes 
Request: Send a blank email to php-notes+get-139626@lists.php.net to get a copy of this message
Just to note, I don't think image output functions (imagejpeg, imagegif etc) are caught by ob. This code: <?php ob_start(); $im = imagecreateturecolor(100,20); $white = imagecolorallocate($error_im,255,255,255); $black = imagecolorallocate($error_im,0,0,0); imagefttext($im,12,0,0,0,$black,'font.ttf','Hello, world!'); imagegif($im); ob_flush(); ?> will still produce a black on white image saying "Hello, world!" ---- Server IP: 87.124.64.96 Probable Submitter: 90.209.250.122 ---- Manual Page -- http://www.php.net/manual/en/function.ob-flush.php Edit -- https://master.php.net/note/edit/83377 Del: integrated -- https://master.php.net/note/delete/83377/integrated Del: useless -- https://master.php.net/note/delete/83377/useless Del: bad code -- https://master.php.net/note/delete/83377/bad+code Del: spam -- https://master.php.net/note/delete/83377/spam Del: non-english -- https://master.php.net/note/delete/83377/non-english Del: in docs -- https://master.php.net/note/delete/83377/in+docs Del: other reasons-- https://master.php.net/note/delete/83377 Reject -- https://master.php.net/note/reject/83377 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#139626) next »