Files and Folders: MS-Excel Stream Handler
Ignatius Teo (contact me)
This class implements a stream handler interface to read and write Microsoft Excel spreadsheet files in the XLS format.
XLS files may be read and written using PHP fopen, fread or fwrite, or any other PHP functions that can access to streams.
The file name has the format xlsfile://path/to/spreadsheet.xls where /path/to/spreadsheet.xls is the path of the actual spreadsheet file to be read or written.
To create a XLS file just pass a serialized array of spreadsheet row arrays that associate the column names with their values.
In the current version the class does not process the data read from a XLS file. Instead it just returns the raw XLS file data as is.
This class requires at least PHP 4.3.0 as that is the version when stream handling support was introduced in PHP.
| Utility
| Consistency
| Docs
| Examples
| Tests
| Videos
| Overall
| Rank
|
| Sufficient (74.5%)
| Sufficient (68.6%)
| Sufficient (64.9%)
| Sufficient (67.0%)
| -
| -
| Not sure (57.3%)
| 819 |
Click here for detailed information about this class on phpclasses.org
Example
Example download script
Example
Example export script