[PHP] GD Chinese support - php4.3

2003-02-07 Thread Eddy-Das
any one know how display Chinese Characters (tradition or simplified) in
GD.?
is that something deal with multibyte functions...?

i have installed the bundled GD and Libjpeg
they all worked perfectly with english words

but when i generate a Chinese character, it just display two symbols
i've already set the encoding (of php) to BIG5
and even i use mb_detect_encoding() it can show "BIG-5"

but when i use ImageTTFtext(blah blah blah , mb_convert_encoding("[Chinese
word here]","BIG-5")
it pops out 2 symbol

the ttf font i loaded is the one distributed by Microsoft (HKSCS)

any php experts know how to solve this problem?

Thank you all :)

Regards,


Eddy @ Hong Kong
[EMAIL PROTECTED]



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




Re: [PHP] GD Chinese support - php4.3

2003-02-08 Thread Eddy-Das
but even i tried the hong kong local chinese font, it still display the same
thing!

--


- Eddy Wong
__
inframatrix internet solutions
http://www.inframatrix.com/


   ¥¿¤KEddy
Regular Octa-Eddy
¡@¢¨¡½¢ª¡½¢©¡@
¢¨¢«¡@¡@¡½¢ª¢©
¡½¡@¡@¡@¡½¡@¡½
¡½¡½¡½¡@¡½¡@¡½
¡½¡@¡@¡@¡½¡@¡½
¢ª¢©¡@¡@¡½¢¨¢«
¡@¢ª¡½¢¨¡½¢«¡@
"Tom Rogers" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> Saturday, February 8, 2003, 3:30:11 AM, you wrote:
> ED> any one know how display Chinese Characters (tradition or simplified)
in
> ED> GD.?
> ED> is that something deal with multibyte functions...?
>
> ED> i have installed the bundled GD and Libjpeg
> ED> they all worked perfectly with english words
>
> ED> but when i generate a Chinese character, it just display two symbols
> ED> i've already set the encoding (of php) to BIG5
> ED> and even i use mb_detect_encoding() it can show "BIG-5"
>
> ED> but when i use ImageTTFtext(blah blah blah ,
mb_convert_encoding("[Chinese
> ED> word here]","BIG-5")
> ED> it pops out 2 symbol
>
> ED> the ttf font i loaded is the one distributed by Microsoft (HKSCS)
>
> ED> any php experts know how to solve this problem?
>
> ED> Thank you all :)
>
> ED> Regards,
>
>
> ED> Eddy @ Hong Kong
> ED> [EMAIL PROTECTED]
>
> You will probably find the microsoft font is unicode not Big5
>
> --
> regards,
> Tom
>



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




[PHP] php deal with hidden files on win32

2003-03-05 Thread Eddy-Das
is there any function that can
1) check whether a file is hidden (on win32 platform), or,
2) hiden a file

thanks a lot!!!

--


- Eddy Wong
__
inframatrix internet solutions
http://www.inframatrix.com/


   ¥¿¤KEddy
Regular Octa-Eddy
[EMAIL PROTECTED]@
[EMAIL PROTECTED]@¡½¢ª¢©
[EMAIL PROTECTED]@[EMAIL PROTECTED]@¡½
[EMAIL PROTECTED]@¡½
[EMAIL PROTECTED]@[EMAIL PROTECTED]@¡½
[EMAIL PROTECTED]@¡½¢¨¢«
[EMAIL PROTECTED]@



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



[PHP] Re: simple ereg() question

2003-07-08 Thread Eddy-Das
ereg(".+")

--

- Eddy Wong
__
inframatrix internet solutions
http://www.inframatrix.com/


   ¥¿¤KEddy
Regular Octa-Eddy
[EMAIL PROTECTED]@
[EMAIL PROTECTED]@¡½¢ª¢©
[EMAIL PROTECTED]@[EMAIL PROTECTED]@¡½ É\¿ß¡G [EMAIL PROTECTED]
[EMAIL PROTECTED]@¡½ É\¨¦¡G news://news.fixip.net/chat.ed
[EMAIL PROTECTED]@[EMAIL PROTECTED]@¡½ É\®Þ¤Æ¡G news://news.fixip.net/
[EMAIL PROTECTED]@¡½¢¨¢«
[EMAIL PROTECTED]@

"Gamin" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
>How do i check with ereg() is a string is non-empty (!== '')
>
> Thx
>
> G
>
>



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



[PHP] Re: Long lines

2003-07-11 Thread Eddy-Das
i'm not sure if you want to "code in multi line, display in single line" or
"code in single line, display in multi line"

here gives an example:



This will give:
123456789


another example:

This will give :
abc
def
xyz


another one:

this also gives the same as above


hope this helps

-- 

- Eddy Wong
__
inframatrix internet solutions
http://www.inframatrix.com/


   ??Eddy
Regular Octa-Eddy
???
???
??? ??: [EMAIL PROTECTED]
??? ??: news://news.fixip.net/chat.ed
??? ???: news://news.fixip.net/
???
???

"Alvaro Rosales R." <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> Hi guys,I am new to PHP and I am writing my first scripts, so maybe this question 
> is a kinda stupid, but it is driving me crazy,  can you tell me How can I set a line 
> break in longs line of my code?.
> thanks in advance!


[PHP] ulimit with php

2003-07-18 Thread Eddy-Das
Does any know how to catch the signal sent to a process called by PHP?

eg.

$something = `ulimit -t 30 -otherlimit; ./loop_to_death`;

ulimit should return something like SIGALRM

I use exec() but it only give me the exit code (always 128+9), not the signal..

because i need to know the reason of ulimit to terminated that program
whether is CPU time too much, or other limits exceeded

I was delighted to see "proc_get_status" but unluckily the machine only have PHP 4.3.0 
.
(can't install PHP5 because something were missing... XML? forgotten)

Please help!

-- 

- Eddy Wong
__
inframatrix internet solutions
http://www.inframatrix.com/


   ¥¿¤KEddy
Regular Octa-Eddy
[EMAIL PROTECTED]@
[EMAIL PROTECTED]@¡½¢ª¢©
[EMAIL PROTECTED]@[EMAIL PROTECTED]@¡½ É\¿ß¡G [EMAIL PROTECTED]
[EMAIL PROTECTED]@¡½ É\¨¦¡G news://news.fixip.net/chat.ed
[EMAIL PROTECTED]@[EMAIL PROTECTED]@¡½ É\®Þ¤Æ¡G news://news.fixip.net/
[EMAIL PROTECTED]@¡½¢¨¢«
[EMAIL PROTECTED]@



[PHP] ereg & preg

2003-08-15 Thread Eddy-Das
is there any syntax difference between
ereg() and preg() except preg needs / and /?


-- 

- Eddy Wong
__
inframatrix internet solutions
http://www.inframatrix.com/


   ¥¿¤KEddy
Regular Octa-Eddy
[EMAIL PROTECTED]@
[EMAIL PROTECTED]@¡½¢ª¢©
[EMAIL PROTECTED]@[EMAIL PROTECTED]@¡½ É\¿ß¡G [EMAIL PROTECTED]
[EMAIL PROTECTED]@¡½ É\¨¦¡G news://news.fixip.net/chat.ed
[EMAIL PROTECTED]@[EMAIL PROTECTED]@¡½ É\®Þ¤Æ¡G news://news.fixip.net/
[EMAIL PROTECTED]@¡½¢¨¢«
[EMAIL PROTECTED]@