I am writing a script and I was looking into providing some sort of a tool that updates the script when the client requests.
Project is simple logic.
-
Client server sends a request to mother server (which stores the updated scripts in ZIP files) and downloads the .ZIP file from the server.
-
Client server receives the .ZIP file and unpacks it overwriting the outdated script files.
Can someone give me a basic guide or what do I need to do to implement such function ?
I can use pclzip to create/extract archives but I do not know where to start.
Thanks for any help, appreciated.
You will need to use ftp(using php) to upload
example in joomla we can do the following :