 |
ตัวนี้มัน เออเลอร์ใครทราบตอบหน่อย Warning: Cannot add header information - headers already sent by |
|
 |
|
|
 |
 |
|
เรียกใช้ผิดครับ header("location:ชื่อไฟล์ที่ต้องการ");
|
 |
 |
 |
 |
Date :
1 ม.ค. 2548 22:44:39 |
By :
shakid |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
Warning: Cannot add header information - headers already sent by (output started at c:\appserv\www\tmp3xh2b9me8d.php:8) in c:\appserv\www\tmp3xh2b9me8d.php on line 9
ในกระทู้เก่า ๆ มีบอกอย่างละเอียดนะครับสาเหตุเป็นเรพาะอะไร
วิธีแก้คือ
ให้นำ
<?ob_start();?>
ใว้ส่วนบนสุดของโปรแกรม
Fatal error: Call to undefined function: imagecreate() in c:\appserv\www\tmp3xh2b9me8d.php on line 10
Server ไม่รองรับ Gd-Module Graphic ต้องลงตัว GD ก่อนนะครับ
|
 |
 |
 |
 |
Date :
5 ม.ค. 2548 09:56:15 |
By :
@W_IN |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
จากFatal error: Call to undefined function: imagecreate() in c:\appserv\www\tmp3xh2b9me8d.php on line 10
<?
header("Content-type: Image/PNG");
$im=ImageCreate(150,150);
ImageColorAllocate($im,0,0,0);
$green=ImageColorAllocate($im,10,10,140,140);
ImagePNG($im);
ImageDestroy($im);
?>
ลองเปลี่ยนดูนะ
<?
$im=ImageCreate(150,150);
$red=ImageColorAllocate($im,255,0,0);//แล้วแต่จะใช้งาน
$green=ImageColorAllocate($im,255,255,255);//แล้วแต่จะใช้งาน
$black=ImageColorAllocate($im,0,0,0);//แล้วแต่จะใช้งาน
header("Content-type:Image/PNG");
ImagePNG($im);
ImageDestroy($im);
?>
|
 |
 |
 |
 |
Date :
4 พ.ย. 2549 18:22:15 |
By :
savatdee |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|