Hi,
I am trying to read data from an excel file using COM function and inserting the data in to the database. Following is what i did to try out the COM function...
$ex = new COM("Excel.sheet") or Die ("Did not connect");
print "Application name:{$ex->Application->value}<BR>" ;
print "Loaded version: {$ex->Application->version}<BR>";
But when i run this code it gives me the error "Warning: Invalid ProgID: Invalid class string in D:\xls_convertor\xltest.php on line 1
Did not connect"
I am not able to figure out the problem. I have also made the necessary changes to the php.ini file.