Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Zend Developer Zone:
Zip-it or DIY Tar-balls
May 24, 2006 @ 05:53:43

On the Zend Developer Zone, there's a new article concerning the creation of zip files and tarballs inside of a PHP script, including a link to a tutorial from PHPit.net and the steps he had to follow to get started.

Who hasn't sat in front of their computer night after night wondering aloud – to only the monitor and the voices in their head – how they are going to build a zip file or tar ball dynamically using nothing more than PHP. I know that if I had actually thought this, it would have kept me up at nights. Thankfully, before it got that far, those wacky code monkeys over at PHPit have come up with a tutorial that walks you through just this very conundrum.

He noticed he didn't have the packages he needed (Archive_Zip is still "beta"), so he had to issue a pear install to grab it specifically. He comments on the usefulness of parts of the tutorial (examples vs. explainations) as well as the choice to go with a reusable function instead of a wrapper/helper class around the PEAR package.

tagged: pear archive_tar archive_zip install tutorial pear archive_tar archive_zip install tutorial

Link:

Zend Developer Zone:
Zip-it or DIY Tar-balls
May 24, 2006 @ 05:53:43

On the Zend Developer Zone, there's a new article concerning the creation of zip files and tarballs inside of a PHP script, including a link to a tutorial from PHPit.net and the steps he had to follow to get started.

Who hasn't sat in front of their computer night after night wondering aloud – to only the monitor and the voices in their head – how they are going to build a zip file or tar ball dynamically using nothing more than PHP. I know that if I had actually thought this, it would have kept me up at nights. Thankfully, before it got that far, those wacky code monkeys over at PHPit have come up with a tutorial that walks you through just this very conundrum.

He noticed he didn't have the packages he needed (Archive_Zip is still "beta"), so he had to issue a pear install to grab it specifically. He comments on the usefulness of parts of the tutorial (examples vs. explainations) as well as the choice to go with a reusable function instead of a wrapper/helper class around the PEAR package.

tagged: pear archive_tar archive_zip install tutorial pear archive_tar archive_zip install tutorial

Link:

PHPit.net:
Creating ZIP and TAR archives on the fly with PHP
May 14, 2006 @ 14:57:25

Published today, PHPit.net shares this new tutorial highlighting the creation of ZIP and TAR archives dynamically with the contents of your choosing.

In this tutorial I will show you exactly how to do that. Thankfully there are two excellent libraries in the PHP Extension and Application Repository (PEAR) which makes it a lot easier since all the hard stuff has been written for us already.

You will also learn how to stream these dynamically created archives using the right headers so that the browser will know it's an archive, and not a normal PHP page.

With the help of the Archive_Zip package from the PEAR libraries, following the steps to create an archive is simple. They assume that you already have the PEAR setup installed on your system and can easily pull in the Archive_Zip package before starting the tutorial. They help you create a sample archive, show the steps to make an archive from a directory, fixing the directory paths to make extraction easy. They even compress it all into one function to make for easy reuse later on.

tagged: zip tar archive create dynamic archive_zip pear package zip tar archive create dynamic archive_zip pear package

Link:

PHPit.net:
Creating ZIP and TAR archives on the fly with PHP
May 14, 2006 @ 14:57:25

Published today, PHPit.net shares this new tutorial highlighting the creation of ZIP and TAR archives dynamically with the contents of your choosing.

In this tutorial I will show you exactly how to do that. Thankfully there are two excellent libraries in the PHP Extension and Application Repository (PEAR) which makes it a lot easier since all the hard stuff has been written for us already.

You will also learn how to stream these dynamically created archives using the right headers so that the browser will know it's an archive, and not a normal PHP page.

With the help of the Archive_Zip package from the PEAR libraries, following the steps to create an archive is simple. They assume that you already have the PEAR setup installed on your system and can easily pull in the Archive_Zip package before starting the tutorial. They help you create a sample archive, show the steps to make an archive from a directory, fixing the directory paths to make extraction easy. They even compress it all into one function to make for easy reuse later on.

tagged: zip tar archive create dynamic archive_zip pear package zip tar archive create dynamic archive_zip pear package

Link: