Ignatius Teo is available for providing paid consulting. Contact Ignatius Teo .
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.
used to export associative array data directly to MS-Excel.
Then call fclose(), as you would normally.
Prize: One downloadable copy of Roadsend PHP Compiler Microsoft Excel is one of the most popular applications for desktop users, especially as a business work tool. Therefore the generation of spreadsheets in the Excel XLS format is a frequently used feature of Web applications to provide information in a way that lets their users do their work using Excel.
There have always been plenty of solutions to generate spreadsheet files in the XLS format. However, this class provide an innovating approach to the problem of generating XLS files.
This class takes advantage of the stream wrapping capabilities introduced in PHP 4.3 to let applications create XLS files just by using common file handling functions, making the generation of this type of files a trivial task.