[PHP] Why my gd can not work?help please!!!

2002-04-19 Thread zhaoxd

I have installed gd-1.8.4 in apache server without any problems.To check if the gd can 
work,I write some codes with php like this:
?
Header(Content-type: image/gif);
$im = imagecreate(40,30);
$black = ImageColorAllocate($im, 0,0,0);
$white = ImageColorAllocate($im, 255,255,255);
imageline($im, 1, 1, 350, 25, $black);
imagearc($im, 200, 15, 20, 20, 35, 190, $white1);
imagestring($im, 5, 4, 10, Graph TEST!!, $white);
ImageGif($im);
ImageDestroy($im);
?.
However,the output in IE is the warning message: bWarning/b:  ImageGif: No GIF 
create support in this PHP build in b/usr/local/apache/htdocs/index.php/b on line 
b9/bbr.why??

when I add comment to the line of ImageGif($im),nothing is displayed,why??

ps:my php work very well in this server.

help,please!!


 





[PHP] Why my gd can not work?help please!!!

2002-04-19 Thread zhaoxd

I have installed gd-1.8.4 in apache server without any problems.To check if the gd can 
work,I write some codes in php like this:
?
Header(Content-type: image/gif);
$im = imagecreate(40,30);
$black = ImageColorAllocate($im, 0,0,0);
$white = ImageColorAllocate($im, 255,255,255);
imageline($im, 1, 1, 350, 25, $black);
imagearc($im, 200, 15, 20, 20, 35, 190, $white1);
imagestring($im, 5, 4, 10, Graph TEST!!, $white);
ImageGif($im);
ImageDestroy($im);
?.
However,the output in IE is the warning message: bWarning/b:  ImageGif: No GIF 
create support in this PHP build in b/usr/local/apache/htdocs/index.php/b on line 
b9/bbr.why??

when I add comment to the line of ImageGif($im),nothing is displayed,why??

ps:my php work very well in this server.

help,please!!


 





[PHP] Why my gd can not work?help please!!!

2002-04-19 Thread zhaoxd

I have installed gd-1.8.4 in apache server without any problems.To check if the gd can 
work,I write some codes in php like this:
?
Header(Content-type: image/gif);
$im = imagecreate(40,30);
$black = ImageColorAllocate($im, 0,0,0);
$white = ImageColorAllocate($im, 255,255,255);
imageline($im, 1, 1, 350, 25, $black);
imagearc($im, 200, 15, 20, 20, 35, 190, $white1);
imagestring($im, 5, 4, 10, Graph TEST!!, $white);
ImageGif($im);
ImageDestroy($im);
?.
However,the output in IE is the warning message: bWarning/b:  ImageGif: No GIF 
create support in this PHP build in b/usr/local/apache/htdocs/index.php/b on line 
b9/bbr.why??

when I add comment to the line of ImageGif($im),nothing is displayed,why??

ps:my php work very well in this server.

help,please!!


 





Re: [PHP] Why my gd can not work?help please!!!

2002-04-19 Thread Jan Peuker

GIF is licensed by Unisys(it is a compuserve format). This is very
expensive, so it has been cut out of php. Solution: a) use PNG b) get an old
version of php.

regars,

Jan Peuker

P.S.: In future, please don't post 3 times using courier-extrabig.


- Original Message -
From: zhaoxd [EMAIL PROTECTED]
To: php mailling list [EMAIL PROTECTED]
Sent: Friday, April 19, 2002 9:06 AM
Subject: [PHP] Why my gd can not work?help please!!!


 I have installed gd-1.8.4 in apache server without any problems.To check
if the gd can work,I write some codes in php like this:
 ?
 Header(Content-type: image/gif);
 $im = imagecreate(40,30);
 $black = ImageColorAllocate($im, 0,0,0);
 $white = ImageColorAllocate($im, 255,255,255);
 imageline($im, 1, 1, 350, 25, $black);
 imagearc($im, 200, 15, 20, 20, 35, 190, $white1);
 imagestring($im, 5, 4, 10, Graph TEST!!, $white);
 ImageGif($im);
 ImageDestroy($im);
 ?.
 However,the output in IE is the warning message: bWarning/b:
ImageGif: No GIF create support in this PHP build in
b/usr/local/apache/htdocs/index.php/b on line b9/bbr.why??

 when I add comment to the line of ImageGif($im),nothing is displayed,why??

 ps:my php work very well in this server.

 help,please!!








-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Why my gd can not work?help please!!!

2002-04-19 Thread Jason Wong

On Friday 19 April 2002 15:06, zhaoxd wrote:
 I have installed gd-1.8.4 in apache server without any problems.To check if
 the gd can work,I write some codes in php like this:
 ?
 Header(Content-type: image/gif);
 $im = imagecreate(40,30);
 $black = ImageColorAllocate($im, 0,0,0);
 $white = ImageColorAllocate($im, 255,255,255);
 imageline($im, 1, 1, 350, 25, $black);
 imagearc($im, 200, 15, 20, 20, 35, 190, $white1);
 imagestring($im, 5, 4, 10, Graph TEST!!, $white);
 ImageGif($im);
 ImageDestroy($im);
 ?.
 However,the output in IE is the warning message: bWarning/b: 
 ImageGif: No GIF create support in this PHP build in
 b/usr/local/apache/htdocs/index.php/b on line b9/bbr.why??
 
 when I add comment to the line of ImageGif($im),nothing is displayed,why??

The GD library which is on your system has the GIF functions removed owing to 
patents/licensing issues. Either get an older version of the library (the 
official GD Library website doesn't have it anymore, try searching on 
Google), or use PNG instead of GIF.

Also please refrain from posting the same thing more than once -- it only 
annoys people.

-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *

/*
Saints should always be judged guilty until they are proved innocent.
-- George Orwell, Reflections on Gandhi
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Why my gd can not work?help please!!!

2002-04-19 Thread zhaoxd


 On Friday 19 April 2002 15:06, zhaoxd wrote:
  I have installed gd-1.8.4 in apache server without any problems.To check if
  the gd can work,I write some codes in php like this:
  ?
  Header(Content-type: image/gif);
 
  $im = imagecreate(40,30);
 
  $black = ImageColorAllocate($im, 0,0,0);
 
  $white = ImageColorAllocate($im, 255,255,255);
 
  imageline($im, 1, 1, 350, 25, $black);
 
  imagearc($im, 200, 15, 20, 20, 35, 190, $white1);
 
  imagestring($im, 5, 4, 10, Graph TEST!!, $white);
 
  ImageGif($im);
 
  ImageDestroy($im);
 
  ?.
 
  However,the output in IE is the warning message: bWarning/b: 
  ImageGif: No GIF create support in this PHP build in
  b/usr/local/apache/htdocs/index.php/b on line b9/bbr.why??
  
  when I add comment to the line of ImageGif($im),nothing is displayed,why??
 
 
 The GD library which is on your system has the GIF functions removed owing to 
 patents/licensing issues. Either get an older version of the library (the 
 official GD Library website doesn't have it anymore, try searching on 
 Google), or use PNG instead of GIF.
 
 Also please refrain from posting the same thing more than once -- it only 
 annoys people.
 
sorry for annoying you all with so many letters.
: )
But this time,when I use imagepng function  instead  imagegif funtion,the result is 
not right ,either!

The warning message displayed also,which is bWarning/b:  ImagePng: No PNG support 
in this PHP build in b/usr/local/apache/htdocs/index.php/b on line b9/bbr.

WhyWhat shall I do now?



Re: [PHP] Why my gd can not work?help please!!!

2002-04-19 Thread Jason Wong

On Friday 19 April 2002 15:41, zhaoxd wrote:

 But this time,when I use imagepng function  instead  imagegif funtion,the
 result is not right ,either!
 
 The warning message displayed also,which is bWarning/b:  ImagePng: No
 PNG support in this PHP build in b/usr/local/apache/htdocs/index.php/b
 on line b9/bbr.
 
 WhyWhat shall I do now?

Did you compile php with:

  --with-png-dir

?

-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *

/*
Riffle West Virginia is so small that the Boy Scout had to double as the
town drunk.
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Why my gd can not work?help please!!!

2002-04-19 Thread zhaoxd

Yeah,I have already compiled --with-png-dir=../libpng --with-zlib-dir=../zlib.

The command is :
./configure --with-mysql=/usr/local/mysql --with-apache=../apache_1.3.24 
--enable-track-vars --with-gd=../gd-1.8.4 --with-png-dir=../libpng 
--with-zlib-dir=../zlib
Has something wrong or something I forgotten?

But it is still unworked..

ps:the test code is:

?
Header(Content-type: image/png);
$im = imagecreate(400,30);
$black = ImageColorAllocate($im, 0,0,0);
$white = ImageColorAllocate($im, 255,255,255);
imageline($im, 1, 1, 350, 25, $black);
imagearc($im, 200, 15, 20, 20, 35, 190, $white);
imagestring($im, 5, 4, 10, Graph TEST!!, $white);
ImagePNG($im);
ImageDestroy($im);
?


- Original Message - 
From: Jason Wong [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, April 19, 2002 3:46 PM
Subject: Re: [PHP] Why my gd can not work?help please!!!


 On Friday 19 April 2002 15:41, zhaoxd wrote:
 
  But this time,when I use imagepng function  instead  imagegif funtion,the
  result is not right ,either!
  
  The warning message displayed also,which is bWarning/b:  ImagePng: No
  PNG support in this PHP build in b/usr/local/apache/htdocs/index.php/b
  on line b9/bbr.
  
  WhyWhat shall I do now?
 
 
 Did you compile php with:
 
   --with-png-dir
 
 ?
 
 -- 
 Jason Wong - Gremlins Associates - www.gremlins.com.hk
 Open Source Software Systems Integrators
 * Web Design  Hosting * Internet  Intranet Applications Development *
 
 /*
 Riffle West Virginia is so small that the Boy Scout had to double as the
 town drunk.
 */
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php