<?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>Fri, 24 May 2013 04:40:16 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[WebSpeaks.in: Extract the Content of Zip file Using PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/18088</guid>
      <link>http://www.phpdeveloper.org/news/18088</link>
      <description><![CDATA[<p>
On the WebSpeaks.in site, there's a recent tutorial posted showing how you can <a href="http://www.webspeaks.in/2012/06/extract-content-of-zip-file-using-php.html">extract the contents of a zip file</a> from inside a PHP application.
</p>
<blockquote>
Sometimes you may want the users on your site to upload the zip file and then check what are the contents of that zip file. In this article I will tell you how to extract the contents of the zip file. I temporarily extract the zip files to a directory and then delete it afterwards. You can chose to keep the extracted content if you want. 
</blockquote>
<p>
The tutorial walks you through the code, showing you how to use their "ZipArchive" class to grab the file, extract the contents and display a list of the "child files" inside it. You can see a <a href="http://demos.webspeaks.in/zip/">live demo</a> of it in action or just <a href="https://www.box.com/s/3e3ee33e1e6bf503c057">download the source</a> and dive right in.
</p>]]></description>
      <pubDate>Wed, 13 Jun 2012 10:44:44 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPMaster.com: Sending Emails with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/17031</guid>
      <link>http://www.phpdeveloper.org/news/17031</link>
      <description><![CDATA[<p>
In a new tutorial from PHPMaster.com <i>Jason Pasnikowski</i> takes a look at <a href="http://phpmaster.com/sending-emails-with-php/">sending emails with PHP</a> - an introduction to what the language offers and how it can be used to send an HTML version.
</p>
<blockquote>
In most cases your installation of PHP will be capable of sending emails. If you are using a shared host, or if you installed PHP using a package management system like apt-get, more than likely you're all set. You'll really only need to worry about extra configuration if you're compiling PHP from source or if you're running it on Windows. In either case, there are plenty of resources available online to help you out. Because that's all beyond the scope of this article, I'll assume you're set. If not, Google will be your friend.
</blockquote>
<p>
He starts with a simple example using the <a href="http://php.net/mail">mail</a> function but quickly moves on to sending a multi-part email with an attached zip file and HTML content. He includes the all code you'll need and explains each part in detail so you'll know exactly what's going on.
</p>]]></description>
      <pubDate>Mon, 24 Oct 2011 20:08:52 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPBuilder.com: Working with Zip Archives in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/14309</guid>
      <link>http://www.phpdeveloper.org/news/14309</link>
      <description><![CDATA[<p>
On PHPBuilder.com today <i>Octavia Anghel</i> has written up a tutorial about <a href="http://www.phpbuilder.com/columns/Octavia_Anghel040610.php3">working with zip archive files</a> directly from PHP. The key is the <a href="http://www.php.net/manual/en/book.zip.php">Zip Archive extension</a> that you can <a href="http://pecl.php.net/package/zip">get from the PECL repository</a> if you have a version older than PHP 5.2. Those on PHP 5.2 or higher already have it bundled in.
</p>
<blockquote>
I explain how to manage Zip archive files in PHP using a number of <a href="http://www.phpbuilder.com/columns/php_zip_code.zip">demo PHP applications</a>. You'll learn how to create Zip archives, add files and folders inside the archive from a string and from a given path, delete and rename files using their indexes and names and list the ZipArchive object details (number of files, filenames, comments, statusSys, etc.).
</blockquote>
<p>
Complete code for the examples (along with a few screenshots) are included in the tutorial as well as <a href="http://www.phpbuilder.com/columns/php_zip_code.zip">a link to download the source</a> to get you started even faster.
</p>]]></description>
      <pubDate>Wed, 07 Apr 2010 08:44:54 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[NETTUTS.com: How to Open Zip Files with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/11652</guid>
      <link>http://www.phpdeveloper.org/news/11652</link>
      <description><![CDATA[<p>
The NETTUTS.com site has a <a href="http://feedproxy.google.com/~r/nettuts/~3/umTYCt6xvOg/">new tutorial/screencast</a> posted looking at their method for opening up uploaded zip files with PHP:
</p>
<blockquote>
ThemeForest has a nice feature; It allows the authors to upload zip files containing screenshots of their themes. A script then extracts these files and displays the images accordingly. Though I doubt that the developers used PHP to accomplish this task...that's what we're going to use!
</blockquote>
<p>
They create a simple form with one field - a file input - and write some basic PHP around it. The script ensures that it was a zip file that was uploaded (based on the mime type) and passes it through a ZipArchive class to do the hard work. This class and the rest of the source <a href="http://nettuts.s3.amazonaws.com/165_php_zip/unZip_php.zip">can be downloaded</a> from the site.
</p>]]></description>
      <pubDate>Wed, 31 Dec 2008 12:04:06 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Jani Hartikainen's Blog: Zend Framework components as separate zips from the main distro? Sure!]]></title>
      <guid>http://www.phpdeveloper.org/news/11158</guid>
      <link>http://www.phpdeveloper.org/news/11158</link>
      <description><![CDATA[<p>
<i>Jani Hartikainen</i> has put together a handy script for those out there that like what the Zend Framework is all about but don't really need the whole thing to get the job done. If that's you, <a href="http://codeutopia.net/pack/">this script</a> might be just what you need.
</p>
<blockquote>
Did you ever want to use just a single component from Zend Framework, but couldn't figure out which files you needed? Well, here's a solution: <a href="http://codeutopia.net/pack/">Zend Framework packageizer script</a>! Just pick the class you want, and you'll get it and all its dependencies in a nice zip file for you to consume.
</blockquote>
<p>
The packager uses the <a href="http://fi.php.net/tokenizer">tokenizer</a> functionality PHP offers natively to look through the files for the package you're after and finds all of the files that might need to be included and pulls them right along into the zip file.
</p>]]></description>
      <pubDate>Tue, 07 Oct 2008 09:39:44 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Joey's Blog: 8 Practical PHP Regular Expressions]]></title>
      <guid>http://www.phpdeveloper.org/news/8855</guid>
      <link>http://www.phpdeveloper.org/news/8855</link>
      <description><![CDATA[<p>
On his web development blog, <i>Joey</i> has <a href="http://devolio.com/blog/archives/34-8-Practical-PHP-Regular-Expressions.html">posted a new list</a> of eight handy regular expressions you can use in your code for common validations.
</p>
<blockquote>
Here are eight examples of practical PHP regular expressions and techniques that I've used over the past few years using Perl Compatible Regular Expressions. This guide goes over the eight different validation techniques and describes briefly how they work. Usernames, telephone numbers, email addresses, and more.
</blockquote>
<p>
Each of the regular expressions comes complete with an explanation of what it is and the kinds of strings it's looking for. Comments on <a href="http://devolio.com/blog/archives/34-8-Practical-PHP-Regular-Expressions.html">the post</a> have helped even more, finding places where they might break or not catch all possibilities.
</p>]]></description>
      <pubDate>Wed, 17 Oct 2007 10:27:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Web Development Blog: Tutorial: Create a zip file from folders on the fly]]></title>
      <guid>http://www.phpdeveloper.org/news/8748</guid>
      <link>http://www.phpdeveloper.org/news/8748</link>
      <description><![CDATA[<p>
On the Web Development Blog, there's <a href="http://www.web-development-blog.com/archives/tutorial-create-a-zip-file-from-folders-on-the-fly/">a quick tutorial</a> on creating dynamic zip files via a helpful little class:
</p>
<blockquote>
For a future project I needed these days some easy to use zip or gzip class to create a zip file from files / folders inside a specified directory. [...] I tested two [other] scripts before and must say that this script works great for single files if you add them manually. To compress a whole directory with an unknown number of files into one zip file I created some class extension to get this job done.
</blockquote>
<p>
In <a href="http://www.web-development-blog.com/archives/tutorial-create-a-zip-file-from-folders-on-the-fly/">his class</a>, the get_file_from_folder method is called with the directory and the file to load them into. This loops through the files, pulling them all (directories and all) into the new zip file. An example of the class' use is also included. 
</p>]]></description>
      <pubDate>Fri, 28 Sep 2007 10:24:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Rob Allen's Blog: Zend Framework Tutorial Zip File Updated]]></title>
      <guid>http://www.phpdeveloper.org/news/8434</guid>
      <link>http://www.phpdeveloper.org/news/8434</link>
      <description><![CDATA[<p>
<i>Rob Allen</i> has <a href="http://akrabat.com/2007/08/11/zend-framework-tutorial-zip-file-updated/">posted about more updates</a> that have been made to his Zend Framework tutorial zip file - one now contains a copy of the framework, the other doesn't.
</p>
<blockquote>
This time, I've created two files: one with the Zend Framework (1.0.1) included and one without. The one without is much smaller at only 9KB, where as with the Framework, the zip is 2.2MB.
</blockquote>
<p>
You can download the version <a href="http://akrabat.com/wp-content/uploads/zf_tutorial-140.zip">with just the tutorial</a> or <a href="http://akrabat.com/wp-content/uploads/zf_tutorial-140-with-zf.zip">with the combination</a> directly from his websites. The tutorial has also been bumped up a version (to 1.4.4) with a few updates.
</p>]]></description>
      <pubDate>Mon, 13 Aug 2007 08:46:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[JBLabs Blog:  How to create a zip archive using PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/8172</guid>
      <link>http://www.phpdeveloper.org/news/8172</link>
      <description><![CDATA[<p>
On the JSLabs blog today, there's a <a href="http://www.whenpenguinsattack.com/2007/07/03/how-to-create-a-zip-archive-using-php/">(short) new tutorial</a> showing an alternate method to creating a Zip archive in PHP (rather than with <a href="http://us2.php.net/zip">the zip extension</a>).
</p>
<p>
He illustrates the creation of <a href="http://www.whenpenguinsattack.com/2007/07/03/how-to-create-a-zip-archive-using-php/">simple archive</a> that pulls in a test file from a given path. This is then pushed into the zip archive and packed down and exported. He also notes the different compression levels that it can be created with - no compression, bzipped and gzipped.
</p>
<p>
You can <a href="http://www.whenpenguinsattack.com/DownloadFiles/ziplib.zip">download the library here</a>.
</p>]]></description>
      <pubDate>Tue, 03 Jul 2007 11:08:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: Dynamically Creating Compressed Zip Archives With PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/7976</guid>
      <link>http://www.phpdeveloper.org/news/7976</link>
      <description><![CDATA[<p>
The Zend Developer Zone has <a href="http://devzone.zend.com/article/2105-Dynamically-Creating-Compressed-Zip-Archives-With-PHP">a new tutorial</a> that focuses on the dynamic creation of zip archives in a PHP application.
</p>
<blockquote>
PHP too has included support for the ZIP format since PHP 4.x but it was only recently when, idly browsing the PHP manual, I realized that PHP 5.2.0 includes a re-engineered version of the ext/zip extension, one based on the zlib library. Bored and not a little intrigued, I decided to try it out. And over the next few pages, I'm going to tell you what I found.
</blockquote>
<p>
The tutorial does require that you have <a href="http://pecl.php.net/package/zip">the zip extension</a> installed before getting started. He <a href="http://devzone.zend.com/article/2105-Dynamically-Creating-Compressed-Zip-Archives-With-PHP">starts with the basics</a> (reading and opening a zip file) but quickly moves on to creating and decompressing them. All of the code needed is included of course, so you'll be up and working with your own zip files in no time.
</p>]]></description>
      <pubDate>Tue, 05 Jun 2007 11:54:00 -0500</pubDate>
    </item>
  </channel>
</rss>
