PHP 5.3 ZipArchive issue
<p>I have 5 accounts hosted at the same hosting plan, to each account I load my PHP CMS, hand made.</p>

<p>I Upload a <code>CMS.zip</code> and an <code>UnZip.php</code> file, the entire system works fine as long as the server is configured to work with PHP 5.2. </p>

<p>Recently I encountered an issue with my latest account configured as PHP 5.3, the CMS code is the same, But does not work, after a long and exhausting conversation with the support, they resolved that my code is set to extract only with PHP 5.2 not with 5.3. </p>

<p>I use a standard PHP <code>ZipArchive</code> Class to handle extractions, which is why I found this weird, in any case  I searched for a proper handle to un zip with PHP 5.3 but with no luck. </p>

<p>Can someone please tell me how this code, attached to this question, should be written? 
P.s 
the support mentioned that the ZipArchive class is in fact active on the server. </p>

<p>Here is my code: </p>

<pre><code>   $DIR_NAME = getcwd();

    $zip = new ZipArchive;
    if ($zip-&gt;open('ZipTest.zip') === TRUE) {
        $zip-&gt;extractTo($DIR_NAME);
        $zip-&gt;close();

        if(file_exists('editor.php')){
            echo '&lt;u style="color:Green;"&gt;File Found ::   Extraction Complete !!&lt;/u&gt;&lt;br&gt;';
            echo $DIR_NAME.' : 
        &lt;b style="color:orange;"&gt;ZipTest.zip Activated Seccessfully!&lt;/b&gt; &lt;a href="dir_inventory.php"&gt;Load CMS&lt;/a&gt;&lt;br&gt;';
        }
        else {
            echo '&lt;u style="color:red;"&gt;&lt;b&gt; ERORR &lt;/b&gt;::   Extraction Failure !!&lt;/u&gt;&lt;br&gt;';

        }
    } 
    else {
        echo '&lt;b style="color:red;"&gt;Cant Exctract ZipTest.zip file to location!&lt;/b&gt;';
    }
</code></pre>
