Revised [PHP] COM and PHP

From: Date: Mon, 05 Feb 2001 20:05:24 +0000
Subject: Revised [PHP] COM and PHP
Groups: php.general php.windows 
Request: Send a blank email to php-general+get-38301@lists.php.net to get a copy of this message
I have been trying the following example from the PHP developer's cookbook and it keeps giving me the following error. Parse error: parse error in c:\Inetpub\wwwroot/temp.php on line 5 <? //line 1 $excel_handle = new COM("excel.application"); //line2 $excel_handle->Visible = false; //line3 $worksheet = $excel_handle->workbooks->add(); //line4 $worksheet->Cells(1,1)->value = "Name"; //line5 $worksheet->SaveAs("temp.xls"); //line6 $excel_handle->quit(); //line7 //line8 ?> //line9 Anyone that has Com and PHP experience help please Ryan

« previous php.general (#38301) next »