title: Upload a .zip file to FTP and unzip it using PHP
body: <p>I'm trying to make a script that would upload a certain zip file , currently "test.zip", and then unzip it. I found some answers in this website about how to unzip but got no idea how to do it on an FTP server. All using PHP Please.</p>
  
  <p>Current code: </p>
  
  <pre><code>$zip = new ZipArchive;
  $zip-&gt;open('test.zip');
  $zip-&gt;extractTo('./');
  $zip-&gt;close();
  </code></pre>
  
  <p>Thanks again :)</p>