Re: [請益] win下用.php備份mysql某資料表轉成excel檔
又要麻煩大家了,下面這是怎麼回事??
該改成怎樣子呢?
如果我照 Yahoo知識加 這個來做的話
http://0rz.tw/dd4Jp
會出現
=========
Warning: Cannot modify header information - headers already sent by (output
started at C:\AppServ\www\myPage\SAwarddata\big5\admin.php:8) in
C:\AppServ\www\myPage\good\big5\show.php on line 94
Warning: Cannot modify header information - headers already sent by (output
started at C:\AppServ\www\myPage\SAwarddata\big5\admin.php:8) in
C:\AppServ\www\myPage\good\big5\show.php on line 96
===================
出現錯誤
而 94 96 行 是..
if ($_POST['Mode'] == "OutFile"){
header("Content-type:application/vnd.ms-excel");
header("Content-Disposition:attachment;filename=backup.xls");
}
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 163.25.128.135
→
09/05 10:20, , 1F
09/05 10:20, 1F
→
09/05 13:04, , 2F
09/05 13:04, 2F
→
09/05 13:05, , 3F
09/05 13:05, 3F
推
09/05 16:02, , 4F
09/05 16:02, 4F
→
09/05 16:03, , 5F
09/05 16:03, 5F
→
09/05 16:04, , 6F
09/05 16:04, 6F
討論串 (同標題文章)
完整討論串 (本文為第 2 之 2 篇):
PHP 近期熱門文章
PTT數位生活區 即時熱門文章