include 'Classes/PHPExcel.php';

include 'Classes/PHPExcel/Writer/Excel2007.php';
include 'Classes/PHPExcel/IOFactory.php';
require_once 'Spreadsheet\Excel/Writer.php' ;
require_once 'Spreadsheet\Excel\Writer/Workbook.php' ;
//E:\Program Files\EasyPHP-DevServer-14.1VC11\data\localweb\generer\Spreadsheet\Excel\Writer
try {
echo date('H:i:s') . " Create new PHPExcel object\n";
echo "redderr " ;
$data = new Spreadsheet_Excel_Reader("GenerationDesNoeuds.xls");

$workbook = new Spreadsheet_Excel_Writer('GenerationDesNoeuds.xls');
$worksheet =& $workbook->addWorksheet('My first worksheet');
if (PEAR::isError($worksheet)) {

exit ;
catch (Exception $e)
{ $error =$e->getMessage(); 


Parse error: syntax error, unexpected '$workbook' (T_VARIABLE) in E:\Program Files\EasyPHP-DevServer-14.1VC11\data\localweb\generer\modifier.php on line 19 

Recommended Answers

All 4 Replies

You are missing the ; at the end of line 14

THis was actually posted by another person somewhere else .Problem soloved anyways thanks for reply

OK. Please mark it solved.


Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.