Can I use php to update an outdated script with a ZIP packed script from an external domain?
<p>I am writing a script and I was looking into providing some sort of a tool that updates the script when the client requests.</p>

<p>Project is simple logic.</p>

<ol>
<li><p>Client server sends a request to mother server (which stores the updated scripts in ZIP files) and downloads the .ZIP file from the server.</p></li>
<li><p>Client server receives the .ZIP file and unpacks it overwriting the outdated script files.</p></li>
</ol>

<p>Can someone give me a basic guide or what do I need to do to implement such function ? </p>

<p>I can use pclzip to create/extract archives but I do not know where to start.</p>

<p>Thanks for any help, appreciated.</p>
