Re: [PHP] how to use imagestring() function with Chinese String

2007-07-27 Thread Davis Chan
brian wrote: Does the font you're using support Chinese characters? Are the Good point, I think I am just using the "default" and size 1. Are there other fonts? Where can I find the font file for imageloadfont()? characters coming through in $_GET ok? echo $_GET[...]; is fine. How *are* th

[PHP] how to use imagestring() function with Chinese String

2007-07-27 Thread Davis Chan
Hi! I am trying to use the imagestring() function to put a string of Chinese characters from a $_GET variable onto an image. However, the characters do not display right (English is fine). Is there a way I can fix this or it is the limitation of the function itself? Thanks. -- PHP General Mail

[PHP] How can I install GD support for a php rpm

2007-07-24 Thread Davis Chan
Hi! My php was installed as a module (libphp5.so) when I install Fedora Core 6. However, when I run phpinfo(), I found that it is -without-gd. I would like to ask how can add GD support without rebuilding the whole thing from source? Thanks. -- PHP General Mailing List (http://www.php.net/) To

[PHP] a question on session ID and security

2007-05-28 Thread Davis Chan
Hi! I am developing a site with some authenticated users only features. I would like to know if the following is true: 1. script for login process is located on a SSL-enabled server, so usernames and passwords are encrypted. 2. upon successful login, user is relocated to a non-SSL-enabled serve

[PHP] A problem with passing $_GET in an url (problem solved)

2007-05-04 Thread Davis Chan
Thank you for everyone's help, both public post and private email. I solved the problem, part of it is javascript and part of it is the php generated form (actually a html problem) Now my function is: function Ask_Confirm() { response = confirm("Are you sure?"); if(response == true) {

[PHP] Re: A problem with passing $_GET in an url

2007-05-03 Thread Davis Chan
(sorry if you see 2 posts, I was trying to cancel a post, edit, and repost) Hi! Everyone, Dan is right, after submit button is clicked, the javascript function below is called. I am trying here is the javascript function: > function Ask_Confirm() { > response = confirm("Are you sure?"); > if(r

[PHP] Re: A problem with passing $_GET in an url

2007-05-03 Thread Davis Chan
Hi! Everyone, here is the javascript function: function Ask_Confirm() { response = confirm("Are you sure?"); if(response == true) { to_url = "./admin.php?to_be_rm=" + document.forms[1].to_be_rm.value; // alert(to_url); window.location = to_url; } else { // Do Not

[PHP] A problem with passing $_GET in an url

2007-05-02 Thread Davis Chan
Hi! New to this newsgroup and is debugging a strange behaviour in a site under development. The developement platform is a Linux box running Fedora Core 6, Apache 2.2.3-5 and php-5.1.6-3. Here is the general flow of that particular part of the site: php generated form ---(data submitted by pre