|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17455 to View image
Submitted: 2002-05-27 10:38 UTC Modified: 2002-05-27 10:54 UTC
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: endeeuk at yahoo dot com Assigned:
Status: Closed Package: *Graphics related
PHP Version: 4.0CVS-2002-05-27 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
18 + 15 = ?
Subscribe to this entry?

 [2002-05-27 10:38 UTC] endeeuk at yahoo dot com
hi, All

This is small test for image.

$im = ImageCreate(200,200);
imagefill($im,1,1,1) ;
$bg = ImageColorAllocate($im,1,1,1);
$tx = ImageColorAllocate($im,25,28,28);
ImageString($im,3,70,90,"it works !",1);
if (function_exists("imagegif")) {
    header ("Content-type: image/gif");
    $a  = imagegif ($im);
elseif (function_exists("imagejpeg")) {
    header ("Content-type: image/jpeg");
    $a  = imagejpeg ($im, "", 0.5);
elseif (function_exists("imagepng")) {
    header ("Content-type: image/png");
    $a  = imagepng ($im);
elseif (function_exists("imagewbmp")) {
    header ("Content-type: image/vnd.wap.wbmp");
    $a  = imagewbmp ($im);
    die("No image support in this PHP server");

imagedestroy($im) ;


This is my script : When I calling this script my Browser give me that error :


The page cannot be displayed 
The page you are looking for is currently unavailable. The Web site might be experiencing technical difficulties, or you may need to adjust your browser settings. 


Please try the following:

Click the  Refresh button, or try again later.

If you typed the page address in the Address bar, make sure that it is spelled correctly.

To check your connection settings, click the Tools menu, and then click Internet Options. On the Connections tab, click Settings. The settings should match those provided by your local area network (LAN) administrator or Internet service provider (ISP). 
If your Network Administrator has enabled it, Microsoft Windows can examine your network and automatically discover network connection settings.
If you would like Windows to try and discover them, 
click  Detect Network Settings 
Some sites require 128-bit connection security. Click the Help menu and then click About Internet Explorer to determine what strength security you have installed. 
If you are trying to reach a secure site, make sure your Security settings can support it. Click the Tools menu, and then click Internet Options. On the Advanced tab, scroll to the Security section and check settings for SSL 2.0, SSL 3.0, TLS 1.0, PCT 1.0. 
Click the  Back button to try another link. 

Cannot find server or DNS Error
Internet Explorer  

My PHP version is php3.0.11
GD is 1.3

But when I tried another script , it has no problem ??

Please help me


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-27 10:54 UTC]
Which versions of PHP and GD?  Is it really PHP3 and GD1.3?  If so, UPGRADE!  I tested your script on the current PHP 4.3/GD2 code and it worked just fine so I would assume whatever the problem was, it has been fixed.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Mon Dec 04 11:01:26 2023 UTC