Re: Revised [PHP] COM and PHP
| From: | Pablo Vera | Date: | Mon, 05 Feb 2001 21:12:42 +0000 |
| Subject: | Re: Revised [PHP] COM and PHP | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-5393@lists.php.net to get a copy of this message | ||
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