Re: [PHP] some problems about gd in php

2002-04-21 Thread zhaoxd

Thank you all,I have solved the problem.
:)
zhaoxd
- Original Message - 
From: Jason Wong [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, April 19, 2002 7:08 PM
Subject: Re: [PHP] some problems about gd in php


 On Friday 19 April 2002 18:57, zhaoxd wrote:
  The version of php is php-4.1.2,the latest version,apache-1.3.24,also
  latest.
  
  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:
  ?
 
 [snip]
 
  Is this a compiling problem?The compiling command of php 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
  
 
 1) If this was a recompile:
  a) Presumably there were no errors during configure/make/install?
  b) Did you restart the webserver? 
 
 2) What do you get using phpinfo()?
 
 -- 
 Jason Wong - Gremlins Associates - www.gremlins.com.hk
 Open Source Software Systems Integrators
 * Web Design  Hosting * Internet  Intranet Applications Development *
 
 /*
 Nice guys finish last.
 -- Leo Durocher
 */
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 



Re: [PHP] some problems about gd in php

2002-04-21 Thread Jason Wong

On Monday 22 April 2002 10:54, zhaoxd wrote:
 Thank you all,I have solved the problem.

What fixed the problem then?

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

/*
There was no difference between the behavior of a god and the operations of
pure chance...
-- Thomas Pynchon, _Gravity's Rainbow_
*/

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




Re: [PHP] some problems about gd in php

2002-04-21 Thread zhaoxd

recompile php from scratch.
: P
zhaoxd
- Original Message - 
From: Jason Wong [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 22, 2002 12:51 PM
Subject: Re: [PHP] some problems about gd in php


 On Monday 22 April 2002 10:54, zhaoxd wrote:
  Thank you all,I have solved the problem.
 
 
 What fixed the problem then?
 
 -- 
 Jason Wong - Gremlins Associates - www.gremlins.com.hk
 Open Source Software Systems Integrators
 * Web Design  Hosting * Internet  Intranet Applications Development *
 
 /*
 There was no difference between the behavior of a god and the operations of
 pure chance...
 -- Thomas Pynchon, _Gravity's Rainbow_
 */
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 





Re: [PHP] some problems about gd in php

2002-04-21 Thread Jason Wong

On Monday 22 April 2002 13:02, zhaoxd wrote:
 recompile php from scratch.

I should've suggest that earlier. When I had to recompile PHP with support 
for gd, ttf, png etc I had the same problem which was only solved by doing a 
clean installation. Now whenever I recompile, I do it from scratch.

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

/*
One family builds a wall, two families enjoy it.
*/

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




[PHP] some problems about gd in php

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/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);
?
But the result is warning message in IE:bWarning/b:  ImagePng: No PNG support in 
this PHP build in b/usr/local/apache/htdocs/index.php/b on line b9/bbr.

Is this a compiling problem?The compiling command of php 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 forgot?

Thank you.

zhaoxd



RE: [PHP] some problems about gd in php

2002-04-19 Thread Craig Vincent

 But the result is warning message in IE:bWarning/b:  
 ImagePng: No PNG support in this PHP build in 
 b/usr/local/apache/htdocs/index.php/b on line b9/bbr.
 
 Is this a compiling problem?The compiling command of php 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

What version of PHP are you using?

Sincerely,

Craig Vincent


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




Re: [PHP] some problems about gd in php

2002-04-19 Thread Jason Wong

On Friday 19 April 2002 18:57, zhaoxd wrote:
 The version of php is php-4.1.2,the latest version,apache-1.3.24,also
 latest.
 
 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:
 ?

[snip]

 Is this a compiling problem?The compiling command of php 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
 

1) If this was a recompile:
 a) Presumably there were no errors during configure/make/install?
 b) Did you restart the webserver? 

2) What do you get using phpinfo()?

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

/*
Nice guys finish last.
-- Leo Durocher
*/

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




Re: [PHP] some problems about gd in php

2002-04-19 Thread zhaoxd


Yeah,I have already restarted web server and there was no error in compiling during 
configure/make/install .Using gd,I get the information that concern about GD Support 
,GD version,WBMP Support ,etc.as follow:

GD Support ---enabled
GD Version1.6.2 or higher
WBMP Support---enabled

the environment variable of  LS_COLORS is 
no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:


By the way,my OS is linux 7.2;kernel is 2.4.17.Before I compiled gd-1.8.4 , I 
configure/make/make install libpng-1.2.0zlib-1.1.4jpeg-6b without any arguments such 
as --prefix and others.Is this right?During the process,there was no error reported.Is 
my test code right?
  
Thank you
zhaoxd
 On Friday 19 April 2002 18:57, zhaoxd wrote:
  The version of php is php-4.1.2,the latest version,apache-1.3.24,also
  latest.
  
  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:
  ?
 
 [snip]
 
  Is this a compiling problem?The compiling command of php 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
  
 
 1) If this was a recompile:
  a) Presumably there were no errors during configure/make/install?
  b) Did you restart the webserver? 
 
 2) What do you get using phpinfo()?




Re: [PHP] some problems about gd in php

2002-04-19 Thread Jason Wong

On Saturday 20 April 2002 09:36, zhaoxd wrote:
 Yeah,I have already restarted web server and there was no error in
 compiling during configure/make/install .Using gd,I get the information
 that concern about GD Support ,GD version,WBMP Support ,etc.as follow:
 
 GD Support ---enabled
 GD Version1.6.2 or higher
 WBMP Support---enabled

If it was a recompile, try to do a clean installation. Remove the directory 
containing your existing php src, untar your tarball, then 
configure/make/install.

   ./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

Also, what is inside these directories?

../gd-1.8.4
../libpng
../zlib

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

/*
Physician:  One upon whom we set our hopes when ill and our dogs when well.
-- Ambrose Bierce
*/

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