brettbrewer.com

Programming + Design

Home
PHP Stream Wrappers Rock! PDF Print E-mail
Written by Brett Brewer   
Sunday, 16 March 2008
Today I'd like to give a big shout out to PHP's stream wrapper functions . I was listening to the PHP_Abstract podcast recently and they interviewed Manuel Lemos, the guy who started PHPClasses.org , and he was talking about "Stream Abstraction" in PHP.  Stream wrappers basically let you treat any kind of stream as a regular file that you can read and write to using the standard file handling functions such as fopen. During the interview Lemos mentioned some cool stream wrapper classes they had at PHPClasses.org and mentioned several cool stream wrappers including a Microsoft Excel stream wrapper class written by an overachieving Aussie named Ignatius Teo. Basically it lets you take associative arrays in PHP and save them directly to Excel spreadsheet files with keys as column names....how cool is that!? Scarecely 24 hours later I had a request from a client to export some x-cart data to an Excel spreadsheet and thanks to this stream wrapper class it was a breeze (I might even say FUN) instead of an annoyance. So thanks PHP , PHP_Abstract , PHPClasses.org , and Ignatius Teo, for making my job as a web developer that much easier today!
Last Updated ( Sunday, 16 March 2008 )
 
< Prev   Next >

Search

Who's Online

We have 1 guest online

© 2017 www.brettbrewer.com
Joomla! is Free Software released under the GNU/GPL License.