about phpword work in linux

Apr 25, 2013 at 9:46 AM
Next code work in windows is ok !
but when I put it on the linux ,then tips me error 500,
when I notes $objWriter->save($filename);,there is no error ,but no data output,
Thankyou very much to give me an answer !!
(there is no change in dir PHPWord)
include './source/PHPWord.php';
$PHPWord = new PHPWord();
$section = $PHPWord->createSection();
$top_txt = iconv('utf-8','gbk','report output time:'.date('Y-m-d H:i:s'));

// Save File
$objWriter = PHPWord_IOFactory::createWriter($PHPWord, 'Word2007');
$filename = 'T.docx';
header ( 'Content-Description: File Transfer' );
header("Content-type: application/vnd.ms-word");
header("Pragma: no-cache");
Apr 26, 2013 at 12:23 AM
Sounds like a permissions problem.
Apr 26, 2013 at 1:07 AM
Yestoday night ,I put the code in my other linux OS, works ok !
then ,I think maybe it's the problem of the LAMP,
wait me set up new LAMP(It's company's Test machine),
wait a moment !!!。。。。
Apr 26, 2013 at 6:09 AM
I no set up,I see the error logs ,there is "Class 'ZipArchive' " not found,
there is the answer http://hi.baidu.com/cloudwhite/item/719588e3e40f66266cabb84a
strange,in windows there is no need !!

now it's work ok !!