คือในเว็บไซค์นี้มีcode ที่ใช้แปลง php เป็น word ตาม code ดังนี้
header("Content-Type:application/msword;");
header("Content-Disposition: attachment; filename=test.doc");
คือเมื่อ ผมลองเอาไปrun บน appserv version 32.5.7 มันไม่สามารถ runได้โดยจะ ขึ้น error
ดังนี้
Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\Test\ru.ac.th\test_word.php:2) in C:\AppServ\www\Test\ru.ac.th\test_word.php on line 3
Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\Test\ru.ac.th\test_word.php:2) in C:\AppServ\www\Test\ru.ac.th\test_word.php on line 4
แต่พอผมไป run บน appser version 2.3.0 กลับสามารถ run ได้ แต่ project ที่ผมทำต้องrun
บน appserv เวอร์ชัน 32.5.7 จึงอยากทราบว่าต้องทำอย่างไรนะครับ