<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Thu, 23 May 2013 23:49:02 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[InformBank.com: How to create Microsoft Office documents on the fly using PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/5971</guid>
      <link>http://www.phpdeveloper.org/news/5971</link>
      <description><![CDATA[<p>
In <a href="http://web.informbank.com/articles/technology/php-office-documents.htm">this new tutorial</a> from InformBank posted today, they show how to use PHP (and a few handy tricks) to create Microsoft Office documents on the fly.
</p>
<blockquote>
<p>
Sometimes you have to generate some MS Office document for the users of your website using dynamic data. For example, few days ago, I had to generate some Excel reports using data from some tables in MySQL. I knew about the COM but it has a lot of disadvantages, including Windows-only platform and not very high speed. CSV is much easier and faster but you can't format the cells to make them better-looking. The method I've never thought about before was using HTML. 
</p>
<p>
So here came the inspiration and after some research and experiments I wrote this tutorial for all of you who are looking how to create Office documents on the fly using PHP. Of course, I included the COM methods and some methods to create other MS Office documents like DOC and PPT, to make this tutorial as full and as useful as possible.
</p>
</blockquote>
<p>
The <a href="http://web.informbank.com/articles/technology/php-office-documents.htm">tutorial starts with</a> the creation of documents (Word, Excel, Powerpoint) with the COM functionality (the standby method PHP has had for a while). Of course, it also requires the script to be running on Windows to work. So, what's the other option? As he goes on to explain, it's something as simple as HTML.
</p>
<p>
He includes two examples of alternate mathods, showing hhow to use HTML or a CSV file to create a custom Excel document. He also throws in some code to help you stream out the resulting document as a zip file to the browser.
</p>]]></description>
      <pubDate>Mon, 07 Aug 2006 11:57:37 -0500</pubDate>
    </item>
  </channel>
</rss>
