Ryan:
Just a thought, try using square brackets on the offending line:
$worksheet->Cells[1,1]->value = "Name"; //line5
Saludos,
Pablo
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Monday, February 05, 2001, 2:05:24 PM, Ryan wrote:
CR> I have been trying the following example from the PHP developer's cookbook
CR> and it keeps giving me the following error.
CR> Parse error: parse error in c:\Inetpub\wwwroot/temp.php on line 5
CR> <? //line 1
CR> $excel_handle = new COM("excel.application"); //line2
$excel_handle->>Visible = false; //line3
CR> $worksheet = $excel_handle->workbooks->add(); //line4
$worksheet->>Cells(1,1)->value = "Name"; //line5
$worksheet->>SaveAs("temp.xls"); //line6
$excel_handle->>quit(); //line7
CR> //line8
?>> //line9
CR> Anyone that has Com and PHP experience help please
CR> Ryan
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]