|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-06-03 07:19 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 00:00:02 2025 UTC |
Imagepng gives no output and no error message if the /tmp folder is full. The header is writed, but there is no output at all. Would be nice if there is a message if the file can't be created. $im = ImageCreate($xx, $yy) or die ("Cannot Initialize new GD image stream"); $black = ImageColorAllocate( $im, 0, 0, 0 ); $white = ImageColorAllocate( $im, 255, 255, 255 ); ImageLine( $im, 0, 0, $xx-1, $yy-1, $white); header("Content-Type: image/png"); ImagePng( $im );