CINXE.COM

How to Upload and Unpack a Zip File using PHP | bavotasan.com

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US"><head><script type="text/javascript" src="/_static/js/bundle-playback.js?v=HxkREWBo" charset="utf-8"></script> <script type="text/javascript" src="/_static/js/wombat.js?v=txqj7nKC" charset="utf-8"></script> <script>window.RufflePlayer=window.RufflePlayer||{};window.RufflePlayer.config={"autoplay":"on","unmuteOverlay":"hidden"};</script> <script type="text/javascript" src="/_static/js/ruffle/ruffle.js"></script> <script type="text/javascript"> __wm.init("https://web.archive.org/web"); __wm.wombat("http://bavotasan.com:80/tutorials/how-to-upload-zip-file-using-php/","20100706045429","https://web.archive.org/","web","/_static/", "1278392069"); </script> <link rel="stylesheet" type="text/css" href="/_static/css/banner-styles.css?v=S1zqJCYt" /> <link rel="stylesheet" type="text/css" href="/_static/css/iconochive.css?v=3PDvdIFv" /> <!-- End Wayback Rewrite JS Include --> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta name="googlebot" content="index,archive,follow,noodp"/><meta name="robots" content="all,index,follow"/><meta name="msnbot" content="all,index,follow"/><meta name="description" content="When you're emailing or uploading larger files, it always makes sense to compress them first. This decreases file size and also helps avoid file corruption..."/><meta name="keywords" content="code,computer,Creating,decreases,document,error,error messages,file,file corruption,form,Function,operating systems,Php File,Ranjan,Ritesh,short pieces,transfer,untitled document,unzip,Upload,uploader,zip,Zip File,"/><title>How to Upload and Unpack a Zip File using PHP | bavotasan.com</title><link rel="stylesheet" href="https://web.archive.org/web/20100706045429cs_/http://bavotasan.com/wp-content/themes/bavotasan_new/style.css" type="text/css" media="screen"/><link rel="alternate" type="application/rss+xml" title="bavotasan.com RSS Feed" href="https://web.archive.org/web/20100706045429/http://feeds.feedburner.com/bavotasan"/><link rel="pingback" href="http://bavotasan.com/xmlrpc.php"/> <!--[if IE]><link rel="stylesheet" type="text/css" href="http://bavotasan.com/wp-content/themes/bavotasan_new/iestyles.css" /> <![endif]--> <!--[if IE 8]><link rel="stylesheet" type="text/css" href="http://bavotasan.com/wp-content/themes/bavotasan_new/iestyles8.css" /> <![endif]--><link rel="canonical" href="https://web.archive.org/web/20100706045429/http://bavotasan.com/tutorials/how-to-upload-zip-file-using-php/"/><link rel="alternate" type="application/rss+xml" title="bavotasan.com 禄 How to Upload and Unpack a Zip File using PHP Comments Feed" href="https://web.archive.org/web/20100706045429/http://bavotasan.com/tutorials/how-to-upload-zip-file-using-php/feed/"/> <script type="text/javascript" src="https://web.archive.org/web/20100706045429js_/http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js?ver=1.4.2"></script> <link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://bavotasan.com/xmlrpc.php?rsd"/><link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://bavotasan.com/wp-includes/wlwmanifest.xml"/><link rel="index" title="bavotasan.com" href="http://bavotasan.com/"/><link rel="start" title="Removing Images from a WordPress Post: Redux" href="http://bavotasan.com/tutorials/removing-images-from-a-wordpress-post/"/><link rel="prev" title="Small Security Hole in WordPress Comments" href="https://web.archive.org/web/20100706045429/http://bavotasan.com/tutorials/small-security-hole-in-wordpress-comments/"/><link rel="next" title="WordPress 3.0: Checking out the New Menu System" href="https://web.archive.org/web/20100706045429/http://bavotasan.com/tutorials/wordpress-3-checking-out-the-new-menu-system/"/><link rel="canonical" href="https://web.archive.org/web/20100706045429/http://bavotasan.com/tutorials/how-to-upload-zip-file-using-php/"/><link rel="shortlink" href="https://web.archive.org/web/20100706045429/http://wp.me/pmjlM-wq"/> <script type="text/javascript" src="https://web.archive.org/web/20100706045429js_/http://ajax.googleapis.com/ajax/libs/swfobject/2.1/swfobject.js"></script> </head><body> <script type="text/javascript">(function(){var bsa=document.createElement('script');bsa.type='text/javascript';bsa.async=true;bsa.src='//web.archive.org/web/20100706045429/http://s3.buysellads.com/ac/bsa.js';(document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(bsa);})();</script> <div id="topmenu"><ul><li><a href="https://web.archive.org/web/20100706045429/http://themes.bavotasan.com/" title="Themes by bavotasan.com">Themes by bavotasan.com</a></li><li><a href="https://web.archive.org/web/20100706045429/http://support.bavotasan.com/" title="Support Forum">Support Forum</a></li><li><a href="https://web.archive.org/web/20100706045429/http://themes.bavotasan.com/affiliates" title="Affiliates">Affiliates</a></li><li class="page_item page-item-1956"><a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/free-premium-theme/" title="Get a Premium Theme for FREE">Get a Premium Theme for FREE</a></li><li class="page_item page-item-943"><a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/about/" title="About">About</a></li><li class="page_item page-item-75"><a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/services/" title="Services">Services</a></li><li class="page_item page-item-12"><a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/contact/" title="Contact">Contact</a></li></ul></div><div id="header"><div id="title"> <a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/" class="bavotasan-logo"></a></div><p id="desc">bavotasan.com&nbsp;by c.bavota</p><div id="navigation"><ul><li><a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/">Home</a></li><li class="cat-item cat-item-1 current-cat70"><a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/category/articles/" title="View all posts filed under Articles">Articles</a></li><li class="cat-item cat-item-671"><a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/category/downloads/" title="View all posts filed under Downloads">Downloads</a></li><li class="cat-item cat-item-1 current-cat"><a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/category/tutorials/" title="View all posts filed under Tutorials">Tutorials</a></li></ul></div> <a href="https://web.archive.org/web/20100706045429/http://feeds.feedburner.com/bavotasan" id="newrss"></a></div><div id="mainwrapper"><div class="topround"></div><div id="content"><div id="leftcontent"><div class="post"><h1>How to Upload and Unpack a Zip File using PHP</h1><div class="thedate"><span>Posted on May 20, 2010&nbsp;&nbsp;|&nbsp;&nbsp;Category: <a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/category/tutorials/" title="View all posts in Tutorials" rel="category tag">Tutorials</a></span></div><p><img src="https://web.archive.org/web/20100706045429im_/http://bavotasan.com/wp-content/uploads/2010/05/zip.jpg" alt="zip How to Upload and Unpack a Zip File using PHP" title="zip" width="200" height="150" class="alignright size-full wp-image-2023"/>When you&#8217;re emailing or uploading larger files, it always makes sense to compress them first. This decreases file size and also helps avoid file corruption during transfer. The most common compressed file you will encounter is the zip file, since most operating systems come with a basic utility to quickly zip and unzip files. Creating a small function to upload a zip file to your server and unpack in the process isn&#8217;t as complicated as you might think.<br/> <span id="more-2010"></span><br/> First let&#8217;s create a simple form that will allow us to browse our computer and upload a zip file.</p><div class="wp_syntax"><table border="0" cellpadding="0" cellspacing="0"><tr><td><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>form enctype<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;multipart/form-data&quot;</span> method<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;post&quot;</span> action<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;</span>label<span style="color: #339933;">&gt;</span>Choose a zip <span style="color: #990000;">file</span> to upload<span style="color: #339933;">:</span> <span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;file&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;zip_file&quot;</span> <span style="color: #339933;">/&gt;&lt;/</span>label<span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;</span>br <span style="color: #339933;">/&gt;</span> <span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;submit&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;submit&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Upload&quot;</span> <span style="color: #339933;">/&gt;</span> <span style="color: #339933;">&lt;/</span>form<span style="color: #339933;">&gt;</span></pre></div></td></tr></table></div><p>Now comes the uploader function:</p><div class="wp_syntax"><table border="0" cellpadding="0" cellspacing="0"><tr><td><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_FILES</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;zip_file&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;name&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000088;">$filename</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_FILES</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;zip_file&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;name&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #000088;">$source</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_FILES</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;zip_file&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;tmp_name&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #000088;">$type</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_FILES</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;zip_file&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;type&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> &nbsp; <span style="color: #000088;">$name</span> <span style="color: #339933;">=</span> <span style="color: #990000;">explode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;.&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$filename</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000088;">$accepted_types</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'application/zip'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'application/x-zip-compressed'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'multipart/x-zip'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'application/x-compressed'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$accepted_types</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$mime_type</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$mime_type</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$type</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000088;">$okay</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> <span style="color: #009900;">&#125;</span> &nbsp; <span style="color: #000088;">$continue</span> <span style="color: #339933;">=</span> <span style="color: #990000;">strtolower</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$name</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'zip'</span> ? <span style="color: #009900; font-weight: bold;">true</span> <span style="color: #339933;">:</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #000088;">$continue</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000088;">$message</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;The file you are trying to upload is not a .zip file. Please try again.&quot;</span> <span style="color: #009900;">&#125;</span> &nbsp; <span style="color: #000088;">$target_path</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;/home/var/yoursite/httpdocs/&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$filename</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// change this to the correct site path</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">move_uploaded_file</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$source</span><span style="color: #339933;">,</span> <span style="color: #000088;">$target_path</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000088;">$zip</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> ZipArchive<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000088;">$x</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$zip</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">open</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$target_path</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$x</span> <span style="color: #339933;">===</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000088;">$zip</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">extractTo</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/home/var/yoursite/httpdocs/&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// change this to the correct site path</span> <span style="color: #000088;">$zip</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">close</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> &nbsp; <span style="color: #990000;">unlink</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$target_path</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> <span style="color: #000088;">$message</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Your .zip file was uploaded and unpacked.&quot;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span> <span style="color: #000088;">$message</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;There was a problem with the upload. Please try again.&quot;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></td></tr></table></div><p>To make sure the success and error messages appear, we will also have to add to short pieces of PHP code:</p><div class="wp_syntax"><table border="0" cellpadding="0" cellspacing="0"><tr><td><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$message</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;p&gt;<span style="color: #006699; font-weight: bold;">$message</span>&lt;/p&gt;&quot;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></td></tr></table></div><p>Putting it all together into a PHP file would look like this:</p><div class="wp_syntax"><table border="0" cellpadding="0" cellspacing="0"><tr><td><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_FILES</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;zip_file&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;name&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000088;">$filename</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_FILES</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;zip_file&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;name&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #000088;">$source</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_FILES</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;zip_file&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;tmp_name&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #000088;">$type</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_FILES</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;zip_file&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;type&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> &nbsp; <span style="color: #000088;">$name</span> <span style="color: #339933;">=</span> <span style="color: #990000;">explode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;.&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$filename</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000088;">$accepted_types</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'application/zip'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'application/x-zip-compressed'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'multipart/x-zip'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'application/x-compressed'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$accepted_types</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$mime_type</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$mime_type</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$type</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000088;">$okay</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> <span style="color: #009900;">&#125;</span> &nbsp; <span style="color: #000088;">$continue</span> <span style="color: #339933;">=</span> <span style="color: #990000;">strtolower</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$name</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'zip'</span> ? <span style="color: #009900; font-weight: bold;">true</span> <span style="color: #339933;">:</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #000088;">$continue</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000088;">$message</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;The file you are trying to upload is not a .zip file. Please try again.&quot;</span> <span style="color: #009900;">&#125;</span> &nbsp; <span style="color: #000088;">$target_path</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;/home/var/yoursite/httpdocs/&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$filename</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// change this to the correct site path</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">move_uploaded_file</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$source</span><span style="color: #339933;">,</span> <span style="color: #000088;">$target_path</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000088;">$zip</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> ZipArchive<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000088;">$x</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$zip</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">open</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$target_path</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$x</span> <span style="color: #339933;">===</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000088;">$zip</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">extractTo</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/home/var/yoursite/httpdocs/&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// change this to the correct site path</span> <span style="color: #000088;">$zip</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">close</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> &nbsp; <span style="color: #990000;">unlink</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$target_path</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> <span style="color: #000088;">$message</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Your .zip file was uploaded and unpacked.&quot;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span> <span style="color: #000088;">$message</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;There was a problem with the upload. Please try again.&quot;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> &lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt; &lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt; &lt;head&gt; &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot; /&gt; &lt;title&gt;Untitled Document&lt;/title&gt; &lt;/head&gt; &nbsp; &lt;body&gt; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$message</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;p&gt;<span style="color: #006699; font-weight: bold;">$message</span>&lt;/p&gt;&quot;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> &lt;form enctype=&quot;multipart/form-data&quot; method=&quot;post&quot; action=&quot;&quot;&gt; &lt;label&gt;Choose a zip file to upload: &lt;input type=&quot;file&quot; name=&quot;zip_file&quot; /&gt;&lt;/label&gt; &lt;br /&gt; &lt;input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;Upload&quot; /&gt; &lt;/form&gt; &lt;/body&gt; &lt;/html&gt;</pre></div></td></tr></table></div><p><small>Zip File Icon: <a href="https://web.archive.org/web/20100706045429/http://24charlie.deviantart.com/">Ritesh Ranjan</a></small></p> <br style="clear:both;"/><hr class="clear"/><p class="tags">Tags: <a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/tag/code/" rel="tag">code</a>, <a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/tag/computer/" rel="tag">computer</a>, <a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/tag/creating/" rel="tag">Creating</a>, <a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/tag/decreases/" rel="tag">decreases</a>, <a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/tag/document/" rel="tag">document</a>, <a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/tag/error/" rel="tag">error</a>, <a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/tag/error-messages/" rel="tag">error messages</a>, <a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/tag/file/" rel="tag">file</a>, <a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/tag/file-corruption/" rel="tag">file corruption</a>, <a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/tag/form/" rel="tag">form</a>, <a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/tag/function/" rel="tag">Function</a>, <a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/tag/operating-systems/" rel="tag">operating systems</a>, <a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/tag/php-file/" rel="tag">Php File</a>, <a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/tag/ranjan/" rel="tag">Ranjan</a>, <a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/tag/ritesh/" rel="tag">Ritesh</a>, <a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/tag/short-pieces/" rel="tag">short pieces</a>, <a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/tag/transfer/" rel="tag">transfer</a>, <a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/tag/untitled-document/" rel="tag">untitled document</a>, <a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/tag/unzip/" rel="tag">unzip</a>, <a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/tag/upload/" rel="tag">Upload</a>, <a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/tag/uploader/" rel="tag">uploader</a>, <a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/tag/zip/" rel="tag">zip</a>, <a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/tag/zip-file/" rel="tag">Zip File</a></p><p class="tags">Short URL: <a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/?p=2010" title="How to Upload and Unpack a Zip File using PHP">http://bavotasan.com/?p=2010</a></p></div><div id="bsap_1248153" class="bsarocks bsap_8982c17d635c33dbe23a7ef930777c37"></div><div class="lowerposts"><div class="leftlower"><h3>Did you like this?</h3><div class="rss"></div><a href="https://web.archive.org/web/20100706045429/http://feeds.feedburner.com/bavotasan">Subscribe and get the latest</a><br/> <a class="a2a_dd addtoany_share_save" href="https://web.archive.org/web/20100706045429/http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fbavotasan.com%2Ftutorials%2Fhow-to-upload-zip-file-using-php%2F&amp;linkname=How%20to%20Upload%20and%20Unpack%20a%20Zip%20File%20using%20PHP"><img src="https://web.archive.org/web/20100706045429im_/http://bavotasan.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> <script type="text/javascript">var a2a_config=a2a_config||{};a2a_config.linkname="How to Upload and Unpack a Zip File using PHP";a2a_config.linkurl="https://web.archive.org/web/20100706045429/http://bavotasan.com/tutorials/how-to-upload-zip-file-using-php/";</script><script type="text/javascript" src="https://web.archive.org/web/20100706045429js_/http://static.addtoany.com/menu/page.js"></script> <div class="share"> <script src="https://web.archive.org/web/20100706045429js_/http://digg.com/tools/diggthis.js" type="text/javascript"></script> <div class="tweet"><script type="text/javascript" src="https://web.archive.org/web/20100706045429js_/http://tweetmeme.com/i/scripts/button.js"></script></div></div></div><div class="rightlower"><div id="crp_related"><h3>Similar Posts</h3><ul><li><a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/tutorials/processing-multiple-forms-on-one-page-with-php/" rel="bookmark" class="crp_title">Processing Multiple Forms on One Page with PHP</a></li><li><a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/tutorials/getting-text-in-your-wordpress-search-box/" rel="bookmark" class="crp_title">Getting Text in your WordPress Search Box</a></li><li><a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/tutorials/turn-text-into-an-image-using-the-php-gd-library/" rel="bookmark" class="crp_title">Turn Text into an Image using the PHP GD Library</a></li><li><a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/tutorials/get-files-from-directory-using-php/" rel="bookmark" class="crp_title">Get All the Files from a Directory Using PHP</a></li><li><a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/tutorials/embed-high-def-video-from-youtube/" rel="bookmark" class="crp_title">Embed High Def Video from YouTube</a></li></ul></div></div></div><div id="postcomments"> <a href="#comment_list"></a><h3 id="comments">2 Responses to &#8220;How to Upload and Unpack a Zip File using PHP&#8221;</h3><div class="navigation"><div class="alignleft"></div><div class="alignright"></div></div><ol class="commentlist"><li class="comment even thread-even depth-1" id="li-comment-9527"><div id="comment-9527"><div class="comment-author vcard"> <img alt="" src="https://web.archive.org/web/20100706045429im_/http://1.gravatar.com/avatar/3e308709177c0a87078eaa7f8fa19a0a?s=36&amp;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D36&amp;r=G" class="avatar avatar-36 photo" height="36" width="36"/><cite class="fn">Dragan</cite></div><div class="comment-meta commentmetadata"><a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/tutorials/how-to-upload-zip-file-using-php/comment-page-1/#comment-9527"> May 21, 2010 at 2:21 pm</a></div><p>Hi, great tutorial, thank you.</p><p>When I open the page in the browser I get this error: Notice: Undefined index: zip_file in /home/www/xxx.php on line 525.</p><p>How I can solve this.<br/> Regards</p><div class="reply"> <a rel="nofollow" class="comment-reply-link" href="/web/20100706045429/http://bavotasan.com/tutorials/how-to-upload-zip-file-using-php/?replytocom=9527#respond" onclick="return addComment.moveForm(&quot;comment-9527&quot;, &quot;9527&quot;, &quot;respond&quot;, &quot;2010&quot;)">Reply</a></div><div class="commentnumber">#9527</div></div></li><li class="comment odd alt thread-odd thread-alt depth-1" id="li-comment-9529"><div id="comment-9529"><div class="comment-author vcard"> <img alt="" src="https://web.archive.org/web/20100706045429im_/http://1.gravatar.com/avatar/3e308709177c0a87078eaa7f8fa19a0a?s=36&amp;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D36&amp;r=G" class="avatar avatar-36 photo" height="36" width="36"/><cite class="fn">Dragan</cite></div><div class="comment-meta commentmetadata"><a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/tutorials/how-to-upload-zip-file-using-php/comment-page-1/#comment-9529"> May 21, 2010 at 2:34 pm</a></div><p>Hi, just to give you complete information, the line 525 is</p><div class="wp_syntax"><table border="0" cellpadding="0" cellspacing="0"><tr><td><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_FILES</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;zip_file&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;name&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></pre></div></td></tr></table></div><p>Thank you in advance<br/> Regards</p><div class="reply"> <a rel="nofollow" class="comment-reply-link" href="/web/20100706045429/http://bavotasan.com/tutorials/how-to-upload-zip-file-using-php/?replytocom=9529#respond" onclick="return addComment.moveForm(&quot;comment-9529&quot;, &quot;9529&quot;, &quot;respond&quot;, &quot;2010&quot;)">Reply</a></div><div class="commentnumber">#9529</div></div></li></ol><div class="navigation"><div class="alignleft"></div><div class="alignright"></div></div><div id="respond"><h3>Leave a Reply</h3><div class="cancel-comment-reply"> <a rel="nofollow" id="cancel-comment-reply-link" href="/web/20100706045429/http://bavotasan.com/tutorials/how-to-upload-zip-file-using-php/#respond" style="display:none;">Click here to cancel reply.</a></div><form action="https://web.archive.org/web/20100706045429/http://bavotasan.com/wp-comments-post.php" method="post" id="commentform"><p><input type="text" name="author" id="author" value="" size="22" tabindex="1"/> <label for="author"><small>Name (required)</small></label></p><p><input type="text" name="email" id="email" value="" size="22" tabindex="2"/> <label for="email"><small>Mail (will not be published) (required)</small></label></p><p><input type="text" name="url" id="url" value="" size="22" tabindex="3"/> <label for="url"><small>Website</small></label></p><p>To enter code in the comment box, please place it between <strong>&lt;pre lang="php"&gt; &lt;/pre&gt;</strong> tags. You don't have to convert any characters to their hex/HTML code. Just add your code the way you would to any code editor.</p><p><textarea name="comment" id="comment" cols="" rows="10" tabindex="4"></textarea></p><p><input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment"/> <input type="hidden" name="comment_post_ID" value="2010" id="comment_post_ID"/> <input type="hidden" name="comment_parent" id="comment_parent" value="0"/></p></form></div></div></div><div id="sidebar"><div id="search"><form method="get" id="searchform" action="https://web.archive.org/web/20100706045429/http://bavotasan.com/"><div> <input type="text" class="search_input" value="To Search, Type &amp; Hit Enter" name="s" id="s" onfocus="if (this.value == 'To Search, Type &amp; Hit Enter') {this.value = '';}" onblur="if (this.value == '') {this.value = 'To Search, Type &amp; Hit Enter';}"/> <input type="hidden" id="searchsubmit" value="Search"/></div></form><div class="arrow"></div></div><div id="sideads"> <a href="https://web.archive.org/web/20100706045429/http://themes.bavotasan.com/"><img src="https://web.archive.org/web/20100706045429im_/http://bavotasan.com/images/themes.png" alt="Themes by bavotasan.com" class="sideads" style="margin-bottom: 8px;" width="270" height="250"/></a><div id="bsap_1237633" class="bsarocks bsap_8982c17d635c33dbe23a7ef930777c37"></div><a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/downloads/delete-duplicate-posts-pro-wordpress-plugin/?xyz=1"><img src="https://web.archive.org/web/20100706045429im_/http://bavotasan.com/wp-content/themes/bavotasan_new/images/ddp-ad.png" class="sideads" alt="Delete Duplicate Posts Pro" width="125" height="125"/></a> <a href="https://web.archive.org/web/20100706045429/https://www.e-junkie.com/ecom/gb.php?cl=88539&amp;c=ib&amp;aff=93121"><img src="https://web.archive.org/web/20100706045429im_/http://bavotasan.com/wp-content/themes/bavotasan_new/images/diggword.png" alt="Digging into WordPress" class="sideads" width="125" height="125"/></a> <a href="https://web.archive.org/web/20100706045429/https://www.e-junkie.com/ecom/gb.php?cl=94455&amp;c=ib&amp;aff=93121" target="ejejcsingle"><img src="https://web.archive.org/web/20100706045429im_/http://bavotasan.com/images/WP-Defender-Cover2.jpg" alt="WordPress Defender" width="125" height="125" class="sideads"/></a> <a href="https://web.archive.org/web/20100706045429/https://secure1.inmotionhosting.com/cgi-bin/gby/clickthru.cgi?id=tinkerpriest&amp;page=7"><img src="https://web.archive.org/web/20100706045429im_/http://creatives.inmotionhosting.com/125x125.v6.gif" class="sideads" width="125" height="125"/></a><div id="bsap_1237624" class="bsarocks bsap_8982c17d635c33dbe23a7ef930777c37"></div><hr style="clear:both;height: 0;border:0;"/></div><div id="popular"><h2>Most Popular Posts</h2><ul class="wppp_list"><li><a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/tutorials/creating-a-jquery-mouseover-fade-effect/" title="Creating a Mouseover Fade Effect with jQuery ">Creating a Mouseover Fade Effect with jQuery </a></li><li><a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/tutorials/a-simple-mouseover-hover-effect-with-jquery/" title="A Simple Mouseover Hover Effect with jQuery">A Simple Mouseover Hover Effect with jQuery</a></li><li><a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/downloads/magazine-basic-free-wordpress-theme/" title="Magazine Basic v2.6 WordPress Theme">Magazine Basic v2.6 WordPress Theme</a></li><li><a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/downloads/full-sizebackground-image-jquery-plugin/" title="Full Size Background Image jQuery Plugin">Full Size Background Image jQuery Plugin</a></li><li><a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/tutorials/processing-multiple-forms-on-one-page-with-php/" title="Processing Multiple Forms on One Page with PHP">Processing Multiple Forms on One Page with PHP</a></li><li><a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/tutorials/retrieve-the-first-image-from-a-wordpress-post/" title="Retrieve and Display Images from a WordPress Post">Retrieve and Display Images from a WordPress Post</a></li><li><a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/tutorials/limiting-the-number-of-words-in-your-excerpt-or-content-in-wordpress/" title="Excerpt or Content Word Limit in WordPress: Redux">Excerpt or Content Word Limit in WordPress: Redux</a></li><li><a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/tutorials/how-to-create-a-twitter-feed-on-your-web-site/" title="How to Create a Twitter Feed on Your Web Site">How to Create a Twitter Feed on Your Web Site</a></li><li><a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/tutorials/wordpress-3-checking-out-the-new-menu-system/" title="WordPress 3.0: Checking out the New Menu System">WordPress 3.0: Checking out the New Menu System</a></li><li><a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/tutorials/remove-the-title-attribute-from-wordpress-category-and-page-lists/" title="Remove the Title Attribute from WordPress Category and Page Lists">Remove the Title Attribute from WordPress Category and Page Lists</a></li></ul></div><div id="freewordpress"><h2>Get a Premium Theme for FREE</h2><p><a href="https://web.archive.org/web/20100706045429/https://secure1.inmotionhosting.com/cgi-bin/gby/clickthru.cgi?id=tinkerpriest" class="wordpress-logo"></a><strong>Don't have a Web site?</strong> How would you like to have WordPress and a <a href="https://web.archive.org/web/20100706045429/http://themes.bavotasan.com/category/premium-themes">Themes by bavotasan.com</a> Premium theme installed and configured for <em>FREE</em>? All you need to do is <a href="https://web.archive.org/web/20100706045429/https://secure1.inmotionhosting.com/cgi-bin/gby/clickthru.cgi?id=tinkerpriest">sign up with InMotion Hosting through this link</a>. <br/> <br/> <a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/free-premium-theme/">Click here for more information &raquo;</a></p></div><div id="donate"><h2>Support c.bavota</h2><p>If you would like to support <a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/">c.bavota</a> and <a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/">bavotasan.com</a>, please use the donate link below. Any amount, even $1.00, is appreciated (a man's gotta eat, ya know).</p><form action="https://web.archive.org/web/20100706045429/https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_s-xclick"/> <input type="hidden" name="hosted_button_id" value="5745952"/> <input type="image" src="https://web.archive.org/web/20100706045429im_/https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" name="submit" alt="PayPal - The safer, easier way to pay online!"/> <img alt="" border="0" src="https://web.archive.org/web/20100706045429im_/https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"/></form></div> <a href="https://web.archive.org/web/20100706045429/http://mediatemple.net/" class="mediatemplate"></a></div></div></div><div id="footer"><div id="sitemap"><div id="wrap"><div class="col1"><h2>Stay in tune</h2><div class="tweets"></div> <br class="clear"/><div class="twitter-bird"></div><a href="https://web.archive.org/web/20100706045429/http://twitter.com/bavotasan" class="follow"><em>Follow Me on Twitter!</em></a></div><div class="col2"><h2>Downloads</h2><ul><li><a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/downloads/feed-me-seymour-free-wordpress-theme/">Feed Me, Seymour 1.2</a></li><li><a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/downloads/magazine-basic-free-wordpress-theme/">Magazine Basic v2.6 WordPress Theme</a></li><li><a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/downloads/sliderota-jquery-plugin/">Sliderota jQuery Plugin</a></li><li><a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/downloads/full-sizebackground-image-jquery-plugin/">Full Size Background Image jQuery Plugin</a></li><li><a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/downloads/easy-overlay-modal-window-jquery-plugin/">Easy Overlay Modal Window jQuery Plugin</a></li><li><a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/downloads/snowblind-free-wordpress-theme/">Snowblind v1.1.2 WordPress Theme</a></li><li><a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/downloads/8-free-colorful-background-textures-for-designers/">8 Free Colorful Background Textures for Designers</a></li></ul></div><div class="col3"><h2>Tutorials</h2><ul><li><a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/tutorials/scrolling-back-to-top-button-jquery/">Creating a Scrolling Back to Top Button with jQuery</a></li><li><a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/tutorials/get_theme_data-developing-custom-theme-wordpress/">Using get_theme_data() when Developing a Custom Theme for WordPress</a></li><li><a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/tutorials/define-constant-php/">Defining a Constant with PHP</a></li><li><a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/tutorials/wordpress-3-activating-background-editor/">WordPress 3.0: Activating the Background Editor</a></li><li><a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/tutorials/wordpress-3-creating-multi-user-web-sites/">WordPress 3.0: Creating Multi-User Web Sites</a></li><li><a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/tutorials/wordpress-3-checking-out-the-new-menu-system/">WordPress 3.0: Checking out the New Menu System</a></li><li><a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/tutorials/how-to-upload-zip-file-using-php/">How to Upload and Unpack a Zip File using PHP</a></li></ul></div></div></div> <span class="footerleft">Copyright &copy; 2010 <a href="https://web.archive.org/web/20100706045429/http://bavotasan.com/">bavotasan.com</a>. All Rights Reserved. Powered by <a href="https://web.archive.org/web/20100706045429/http://www.wordpress.org/">WordPress</a>.</span><div class="toparrow"></div><span class="backtotop">Back to Top</span></div> <script src="https://web.archive.org/web/20100706045429js_/http://stats.wordpress.com/e-201027.js" type="text/javascript"></script> <script type="text/javascript">st_go({blog:'5317602',v:'ext',post:'2010'});var load_cmc=function(){linktracker_init(5317602,2010,2);};if(typeof addLoadEvent!='undefined')addLoadEvent(load_cmc);else load_cmc();</script> <script type="text/javascript" src="https://web.archive.org/web/20100706045429js_/http://bavotasan.com/wp-content/themes/bavotasan_new/js/coolstuff.js"></script> <script type="text/javascript">hs.graphicsDir='https://web.archive.org/web/20100706045429/http://bavotasan.com/wp-content/plugins/highslide-integration/highslide/graphics/';hs.outlineType='rounded-white';hs.outlineWhileAnimating=true;</script> <script type="text/javascript">var gaJsHost=(("https:"==document.location.protocol)?"https://web.archive.org/web/20100706045429/https://ssl.":"https://web.archive.org/web/20100706045429/http://www.");document.write(unescape("%3Cscript src='"+gaJsHost+"google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));</script> <script type="text/javascript">try{var pageTracker=_gat._getTracker("UA-452133-5");pageTracker._trackPageview();}catch(err){}</script> </body></html> <!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/ Minified using disk Page Caching using disk (user agent is rejected) Database Caching 40/59 queries in 0.097 seconds using disk Served from: bavotasan.com @ 2010-07-06 04:54:28 --><!-- FILE ARCHIVED ON 04:54:29 Jul 06, 2010 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 19:50:06 Nov 29, 2024. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). --> <!-- playback timings (ms): captures_list: 0.645 exclusion.robots: 0.034 exclusion.robots.policy: 0.021 esindex: 0.012 cdx.remote: 14.135 LoadShardBlock: 172.028 (3) PetaboxLoader3.datanode: 235.989 (5) PetaboxLoader3.resolve: 2217.692 (2) load_resource: 2329.763 (2) -->

Pages: 1 2 3 4 5 6 7 8 9 10