[PHP] Why not success?Need your help,please!!!

2002-04-18 Thread zhaoxd


I met with some problems when I tried to compile php into apache web server.In a 
words,my php can not worked in the apache server,apache server can not recognize php 
file.

help,please!!!

In httpd.conf of apache server,after I make install,I found only a few php information 
,as follow:


SSLOptions +StdEnvVars


SSLOptions +StdEnvVars


I wanna make php+ssl into apache server,my procedure of compling is as follow:

Mysql
---
./configure --prefix=/usr/local/mysql
make 
make install 
cd scripts 
./mysql_install_db 
cd /usr/local/mysql/share/mysql/ 
chmod 611 mysql.server 
./mysql.server start 
/usr/local/mysql/share/mysql/mysql.server start 

GD:
--- 
make 
make install 


Apache: 
--- 
./configure --prefix=/usr/local/apache 

openssl: 
--- 
./config 
make 
make test 
make install 

mod_ssl: 
--- 
./configure --with-apache=../apache_1.3.24 --with-ssl=../openssl-0.9.6 
--prefix=../apache_1.3.24



php: 
--- 
./configure --with-mysql=/usr/local/mysql --with-apache=../apache_1.3.24 
--enable-track-vars --with-gd=../gd-1.8.4 make 
make install 

Apache: 
--- 
./configure --prefix=/usr/local/apache --activate-module=src/modules/php4/libphp4.a 
--enable-module=ssl 
make 
make certificate 
make install 

All procedure passed without any problems,and next I write a test page,test.php:

in the directory of /usr/local/apache/htdocs/,then,using my IE,the URL is 
https://localhost/test.php,but the result of displaying is blank text "".

In a words,my php has not worked in the apache server,apache server can not recognize 
php file.

What shall I do?Is my httpd.conf not right?

Help,please!

       
 zhaoxd





[PHP] Thank

2002-04-18 Thread zhaoxd


Thank u all,I've got it!!!


:)



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

2002-04-18 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:
.
However,the output in IE is the warning message:" Warning:  ImageGif: No GIF 
create support in this PHP build in /usr/local/apache/htdocs/index.php on line 
9".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-18 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:
.
However,the output in IE is the warning message:" Warning:  ImageGif: No GIF 
create support in this PHP build in /usr/local/apache/htdocs/index.php on line 
9".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-18 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:
.
However,the output in IE is the warning message:" Warning:  ImageGif: No GIF 
create support in this PHP build in /usr/local/apache/htdocs/index.php on line 
9".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 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:" Warning: 
> > ImageGif: No GIF create support in this PHP build in
> > /usr/local/apache/htdocs/index.php on line 9".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 "Warning:  ImagePng: No PNG support 
in this PHP build in /usr/local/apache/htdocs/index.php on line 9".

Why&What shall I do now?



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:




- 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 "Warning:  ImagePng: No
> > PNG support in this PHP build in /usr/local/apache/htdocs/index.php
> > on line 9".
>  
> > Why&What 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
> 
> 
> 



[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:

But the result is warning message in IE:"Warning:  ImagePng: No PNG support in 
this PHP build in /usr/local/apache/htdocs/index.php on line 9".

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 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.0&zlib-1.1.4&jpeg-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-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 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
> 
> 
> 





[PHP] Can php support ttf??

2002-04-22 Thread zhaoxd

hello all:
:)
My version of gd is 1.8.4,my php is 4.1.2,which works on apache server whose version 
is 1.3.24 and my OS is linux7.2.

When I compiled gd ,I used some libraries,such as 
libpng-1.2.0,zlib-1.1.4,freetype-2.1.0,I want my gd can support ttf besides png 
image,is it enough?

Can php support ttf?I hava just compiled gd in php,but I found it can not use some 
functions like ImageTTFtext and ImageTTFBBox,why?

Is that right that  gd-1.8.4 can't support functions about ttf ,just as gd cannot 
support gif?

Thank you
    zhaoxd




[PHP] Why is imageTTFtext function useless?

2002-04-24 Thread zhaoxd

hello,all:

I have already installed gd-1.8.4 in php-4.1.2 with some libraries,such as libpng 
-1.2.0,freetype-1.3,zlib-1.1.4,freetype2,in my apache server which version is 
1.3.24,and "phpinfo()" display php can support such soft,as follow:
GD Support---enabled
GD Version---1.6.2 or higher
FreeType Support-enabled
FreeType Linkage-with freetype
JPG Support--enabled
PNG Support--enabled
WBMP Support-enabled

But when I used the function related with ttf,like ImageTTFText or ImageTTFBox,I found 
it useless,in other words,no pictures were displayed in my IE.
I don't understand why,is gd-1.8.4 can not support these functions?

ps:my test code


Can anybody give a reply?

Thank you
    zhaoxd




Re: [PHP] Why is imageTTFtext function useless?

2002-04-24 Thread zhaoxd


> >  > //define the type of inputting picture;
> > Heder("content-type:image/png");
> 
> Is this a typo? Should be Header(...).
> 

Sorry, I did a wrong copy.But when I cut this line,it output a warning words:
"libgd was not built with FreeType font support in /usr/local/apache/htdocs/test.php 
on line 14",
I guess my compiling is not right,when I installed the php,my parameter of 
configuration is
"./configure --with-mysql=/usr/local/mysql --with-apache=../apache-1.3.24 
--enable-track-vars --with-gd=../gd-1.8.4 --with-imap=../imap-4.7c --enable-ftp 
--with-ldap=/usr/local/ldap --with-zlib-dir=../zlib --with-png-dir=../libpng 
--with-freetype-dir=../freetype2.1.0 --with-ttf=/usr/local/lib"
Did I use freetype2.1.0 right?
Maybe I shall try freetype-1.3.
right?

> > //create picture
> > $pic=imagecreate(240,30);
> > //define color
> > $black=imagecolorallocate($pic,0,0,0);
> > $white=imagecolorallocate($pic,255,255,255);
> > //define font copied from windows2000
> > $font="fonts/simhei.ttf";
> > //define characters to output
> > $str =
> > chr(0xE8).chr(0xB5).chr(0x9B).chr(0xE8).chr(0xBF).chr(0xAA).chr(0xE7).chr(0
> >xBD).chr(0 x91)." www.ccidnet.com";
> > //write ttf in picture
> > imageTTFText($pic,20,0,10,20,$white,$font,$str);
> > //create png picture
> > imagepng($pic);
> > //release the memory occupied by the picture
> > imagedestroy($pic);
> > ?>
> 
> I tried this and it works.  I can only see "www.ccidnet.com".
Thank you,
zhaoxd



Re: [PHP] Why is imageTTFtext function useless?(again)

2002-04-24 Thread zhaoxd


Whatever I tried ,it is also useless,why?

This time I compile it with freetype-1.3.1.when I used the test code , it also said  
"libgd was not built with FreeType font support in /usr/local/apache/htdocs/test.php 
on line 14".

Would you mind tell me how you do this? I just wanna support FreeType font in my gd so 
as to use gd function like ImageTTFText ,etc.

Thank you 
        
zhaoxd

> It works fine.  Spell Header() right, or remove the header altogether so
> you can see the error message.  I predict you will see a message telling
> you it couldn't open the font file.
> 
> -Rasmus
> 
> On Thu, 25 Apr 2002, zhaoxd wrote:
> 
> > hello,all:
> >
> > I have already installed gd-1.8.4 in php-4.1.2 with some libraries,such as libpng 
>-1.2.0,freetype-1.3,zlib-1.1.4,freetype2,in my apache server which version is 
>1.3.24,and "phpinfo()" display php can support such soft,as follow:
> > GD Support---enabled
> > GD Version---1.6.2 or higher
> > FreeType Support-enabled
> > FreeType Linkage-with freetype
> > JPG Support--enabled
> > PNG Support--enabled
> > WBMP Support-enabled
> >
> > But when I used the function related with ttf,like ImageTTFText or ImageTTFBox,I 
>found it useless,in other words,no pictures were displayed in my IE.
> > I don't understand why,is gd-1.8.4 can not support these functions?
> >
> > ps:my test code
> >  > //define the type of inputting picture;
> > Heder("content-type:image/png");
> > //create picture
> > $pic=imagecreate(240,30);
> > //define color
> > $black=imagecolorallocate($pic,0,0,0);
> > $white=imagecolorallocate($pic,255,255,255);
> > //define font copied from windows2000
> > $font="fonts/simhei.ttf";
> > //define characters to output
> > $str = 
>chr(0xE8).chr(0xB5).chr(0x9B).chr(0xE8).chr(0xBF).chr(0xAA).chr(0xE7).chr(0xBD).chr(0
> > x91)." www.ccidnet.com";
> > //write ttf in picture
> > imageTTFText($pic,20,0,10,20,$white,$font,$str);
> > //create png picture
> > imagepng($pic);
> > //release the memory occupied by the picture
> > imagedestroy($pic);
> > ?>
> >
> > Can anybody give a reply?
> >
> > Thank you
> > zhaoxd
> >
> >
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> 



[PHP] Is this a bug?

2002-05-27 Thread zhaoxd

Hello all:

Not long ago I wrote some php code in my computer which had a apache server,and my 
php version is 4.0.5.The code as followed:

$num = 2886732778;
settype($num, integer);
echo $num;

And I found the num is -2147483648.attention,please:the version of php is 4.0.5.

When I installed php-4.2.0 in my computer,however,I found the output of result is 
-1408234499.

Why did the difference between the two version php happen?Is this a bug???

Any help is appreciated!
zhaoxd





[PHP] php questions about cookies

2002-03-07 Thread zhaoxd


I have a question about cookies,why is the time that the cookies
expired not same as the time that parameter of session.cookie_lifetime
set?

for example, I wanna the cookies expired 5 minutes later,what should I
do?I think I should set the parameter,as follow:

session.cookie_lifetime = 300

right?

But, after restart my apache server,I found the cookies maybe expired
after 2 minutes,not 5 minutes as I want.

why?