The Apache POI project (written in Java) offers an interface for many types of files from the MS Office suite.
You can run Java code from PHP using the PHP / Java bridge.
I used this once for an application where MS Word documents need to be indexed in a web application. I remember that everything worked out, it was rather complicated, but then everything turned out very well and quickly enough. (Unfortunately, the code was written in PHP4, and I don't own it, so I can't help you with any snippets here.)
PS I canβt send links since I am a new user, so google for "Apache POI" and "PHP / Java bridge" to go to the main page of the project.
rodion
source share