|
 |
|
สร้างรูปภาพกับ PHP เป็นภาษาไทยได้เป่าครับ ผมลองแล้วภาษาไทยใช้ไม่ได้เลยครับ ถามผู้รู้ทีติดมานานแว้ว ขอบคุณครับ |
|
 |
|
|
 |
 |
|
Code (PHP)
<?
header("Content-type: text/html; charset=utf-8");
header("Content-type: image/jpeg");?>
$picture = 'img_product/'.$name_pic .'';
$im = ImageCreateFromJPEG($picture); //ไฟล์รูป
$blue = ImageColorAllocate($im, $r10, $g10, $b10);
$font = 'font/'.$font_web.''; //ฟอน
$text = $text_web;
ImageTTFText($im, 10.5, 0, $x, $y, $blue, $font, $text);
$id = md5(date("dmyhis"));
$image = ImageJPEG($im,'img_product/'.$id.'.jpg',100);
ImageDestroy($im);
?>
ผมลองแล้วภาษาไทยใช้ไม่ได้เลยครับ ถามผู้รู้ทีติดมานานแว้ว ขอบคุณครับ
Tag : - - - -

|
|
 |
 |
 |
 |
Date :
2009-11-27 12:02:56 |
By :
golfer4425 |
View :
875 |
Reply :
0 |
|
 |
 |
 |
 |
|
|
|
 |
 |
|
 |
 |
|
Load balance : Server 05
|