RE: PHP 4.0 Bug #7029 Updated: ImageWBMP
| From: | jussi at cop dot fi | Date: | Fri, 06 Oct 2000 07:57:25 +0000 |
| Subject: | RE: PHP 4.0 Bug #7029 Updated: ImageWBMP | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-34360@lists.php.net to get a copy of this message | ||
compact@bhnfs07:/www/wap/mail/img$ ./dd.php
X-Powered-By: PHP/4.0.2
Content-type: image/vnd.wap.wbmp
<br>
<b>Fatal error</b>: Call to undefined function: imagecreate() in
<b>./dd.php</b> on line <b>4</b><br>
compact@bhnfs07:/www/wap/mail/img$
-----Original Message-----
From: Bug Database
To: jussi@cop.fi
Sent: 10/6/00 12:53 AM
Subject: PHP 4.0 Bug #7029 Updated: ImageWBMP
ID: 7029
Updated by: stas
Reported By: jussi@cop.fi
Status: Feedback
Bug Type: GD related
Assigned To:
Comments:
What heppens if you run the same script form command line?
Previous Comments:
------------------------------------------------------------------------
---
[2000-10-05 02:01:22] jussi@cop.fi
I can't generate wbmp image on the fly :(
I have apache 1.3.12, PHP4.0.2 and gd 1.8.3-5, no compiler error/problem
but when i try to use ImageWBMP functions, Apache generate message:
Document Contains No Data
There is my example code:
<?php
$tt="C";
Header("Content-type: image/vnd.wap.wbmp");
$img = ImageCreate(40,40);
$bg = ImageColorAllocate ($img, 255,255,255);
$fg = ImageColorAllocate ($img, 0,0,0);
ImageFill($img, 0, 0, $fg);
ImageString($img, 3, 15, 2, $tt, $bg);
ImageWBMP($img);
ImageDestroy($img);
?>
--------------------------------------
And WML code
<?php
include("/www/wap/x/config.jr");
?>
<card>
<p align="center">
<img src="/wap/mail/img/dd.php" alt="Login"/>
</p>
</card>
</wml>
---------------------------------------
------------------------------------------------------------------------
---
Full Bug description available at: http://bugs.php.net/?id=7029