Hey.
What do you mean by "open"? Do you want PHP to
use the file or just pass it to the user?
If it's the former, then that's going to be a problem. The MS Office formats are proprietary; meaning that Microsoft alone can properly use them. Basically, you need to buy Office, and have it installed on the computer to be able to use the Office files.
Closest you will come to being able to read them is to use something like
PHPExcel, which uses Microsoft's "standard" format (which they themselves fail to implement properly...)
If you just want to print it to the user, you can do that by simply setting the proper "content-type"
header, and then passing the file through using
readfile.
- <?php
-
header('Content-type: application/vnd.ms-excel');
-
readfile('/path/to/file.xsl');
-
?>