There is a project that needs to introduce the Phpexcel class library to generate Excel table documents
No problem when writing a test sample
But as soon as I introduced my project, the whole Phpexcel library was full of errors,
After I include the phpexcel.php file
// Set propertiesecho date('H:i:s') . " Set properties\n";$objPHPExcel->getProperties()->setCreator("Maarten Balliauw");$objPHPExcel->getProperties()->setLastModifiedBy("Maarten Balliauw");$objPHPExcel->getProperties()->setTitle("Office 2007 XLSX Test Document");$objPHPExcel->getProperties()->setSubject("Office 2007 XLSX Test Document");$objPHPExcel->getProperties()->setDescription("Test document for Office 2007 XLSX, generated using PHP classes.");
"--" Always prompt syntax error unexpected '--"
What is this situation ah, how to solve
Reply content:
There is a project that needs to introduce the Phpexcel class library to generate Excel table documents
No problem when writing a test sample
But as soon as I introduced my project, the whole Phpexcel library was full of errors,
After I include the phpexcel.php file
// Set propertiesecho date('H:i:s') . " Set properties\n";$objPHPExcel->getProperties()->setCreator("Maarten Balliauw");$objPHPExcel->getProperties()->setLastModifiedBy("Maarten Balliauw");$objPHPExcel->getProperties()->setTitle("Office 2007 XLSX Test Document");$objPHPExcel->getProperties()->setSubject("Office 2007 XLSX Test Document");$objPHPExcel->getProperties()->setDescription("Test document for Office 2007 XLSX, generated using PHP classes.");
"--" Always prompt syntax error unexpected '--"
What is this situation ah, how to solve