|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-07-17 22:00 UTC] sniper@php.net
[2003-07-18 11:13 UTC] peteralien2003 at yahoo dot com
[2003-07-18 11:26 UTC] peteralien2003 at yahoo dot com
[2003-07-19 07:54 UTC] sniper@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 05 15:00:01 2025 UTC |
Description: ------------ I have: Win XP Pro IIS 5.1 PHP 4.3.2 GD 2.0.12 Reproduce code: --------------- <? Header("Content-type: image/png"); $img = ImageCreate(115,55); $ip = $_SERVER['REMOTE_ADDR']; $alt = "(c) 2003 Peter Alien"; //ImageColorTransparent($img,$bgcolor); $bgColor = ImageColorAllocate($img, 0x2c,0x6D,0xAF); // blue $shadow = ImageColorAllocate($img, 84,84,84); // gray $textColor = ImageColorAllocate($img, 0,0,0); // black $white = ImageColorAllocate($img, 255,255,255); //left upper corner ImageRectangle($img,0,0,115-1,55-1,$shadow); //shadow effect ImageRectangle($img,0,0,115,55,$white); ImageTTFText($img,10,0,5,20,$shadow,"times.ttf","$ip\n\r$alt"); // text shadow effect ImageTTFText($img,10,0,4,19,$textColor,"times.ttf","$ip\n\r$alt"); // text color //ImageJpeg($img); ImagePng($img); ImageDestroy($img); ?> Expected result: ---------------- It was supposed to appear an image with the IP of the machine in the browser. Actual result: -------------- Sometimes appears an image but other times it just appears the placehold of it, even when i refresh the browser.