|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2003-02-12 10:21 UTC] iliaa@php.net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 16:00:01 2025 UTC | 
I have a simple script that create image. Everything works right since I put "session_start()" into the script. Then result isn't short PNG image, but large BMP image. MM <? header("Content-Type:image/png"); //session_start(); $im = imagecreate (50, 250); $bgcolor = ImageColorAllocate ($im, 0x77, 0x77, 0x77); $textcolor = ImageColorAllocate ($im, 0x00, 0x00, 0x00); $font = "./arial"; ImageTTFText ($im, 35, 90, 40, 230, $textcolor, $font, "text"); Imagepng ($im); ImageDestroy ($im); ?>