 |
[PHP]
การสร้างรูปภาพด้วย PHP_gd.dll code <? header("Content-type: image/PNG"); $images = ImageCreate(300,200); $photo = ImageColorAllocate($images,0,0,0); |
|
 |
|
|
 |
 |
|
header("Content-type: image/PNG");
|
 |
 |
 |
 |
Date :
1 ม.ค. 2548 22:45:25 |
By :
shakid |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ถ้ามี tag HTML ออกให้หมดครับ
|
 |
 |
 |
 |
Date :
4 ม.ค. 2548 20:13:32 |
By :
dekpret |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ถ้ามี tag HTML เอาออกให้หมดครับ
|
 |
 |
 |
 |
Date :
4 ม.ค. 2548 20:13:52 |
By :
dekpret |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ถ้ามี tag HTML เอาออกให้หมดครับ
จะลองดู ครับ ขอบคุณครับ 
|
 |
 |
 |
 |
Date :
5 ม.ค. 2548 06:11:23 |
By :
arsachi |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
<?
$h=150;
$w=150;
$im=ImageCreate($h,$w);
header("Content - type : Image:/PNG");
ImagePNG($im);
ImageDestroy($im);
?>
เอาหมดแล้วมันเป็นอย่างนี้แทนครับ
Warning: Cannot add header information - headers already sent by (output started at c:\appserv\www\arsachi\tmpoo4vp9tf7g.php:2) in c:\appserv\www\arsachi\tmpoo4vp9tf7g.php on line 6
PNG IHDR??ฯใก

|
 |
 |
 |
 |
Date :
5 ม.ค. 2548 06:14:54 |
By :
arsachi |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ขอบคุณมากครับ
คุณ dekpret ::
ผมรันได้แล้วครับ ผมจะได้ทำงานส่งอาจารย์ต่อ
ไว้คราวหน้าจะขอความกรุณาอีกน่ะครับ 
|
 |
 |
 |
 |
Date :
5 ม.ค. 2548 06:35:35 |
By :
arsachi |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|