PDA

View Full Version : Use of Excelreader on Bluehost



mafeldman
06-17-2007, 06:08 PM
I have a program that uses the Excel reader to process an uploadec excel spreadsheet files. It seems to be an established script (sourceforge project) and it works well in my test environment. However when I move it into the Bluehost environment, I end up with an HTTP 500 internal server error page. I can find nothing in the logs that show an error so I'm thinking it might be looping somehow.

I'm reasonably certain that the problem is with the oleread.inc routines that that the Reader uses. Has anyone ever tried the Excelreader and gotten it to work in the Bluehost environment?

Thanks,
Mike

mafeldman
06-17-2007, 07:49 PM
The problem was that the Bluehost PHP is 64 bits, my test machine is 32 bits.

The code, in olereader.inc has a comparison for -2 for a 32 bit value. To make this work, I changed it to compare for 0xfffffffe.

-Mike