Hi,
I am trying to spawn an instance of excel and populate it with Data from a MsSql database. Excel will not spawn and I get the following error
Parse error: parse error, unexpected T_OBJECT_OPERATOR
here is the code that generates the error, the error is on the final line.
$excel_handle = new COM("Excel.application");
$excel_handle->Visable = false;
$worksheet = $excel_handle->workbooks->add();
$worksheet->Cells(1,1) -> value = "USER ID";
I am wondering if this is a WIN2000 setup issue or maybe a php.ini settings issue - here are the INI settings
[com]
; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs
com.typelib_file =
; allow Distributed-COM calls
com.allow_dcom = true
; autoregister constants of a components typlib on com_load()
com.autoregister_typelib = true
; register constants casesensitive
com.autoregister_casesensitive = false
; show warnings on duplicate constat registrations
com.autoregister_verbose = true
I am not a windows person so this is quite confusing to me, any help or advice would be greatly appreciated.