How to create a automatic update component in php?

5.9k views Asked by At

I'm developing a web application in PHP and I need to develop an automatic update component for that software. When I thought about how to develop this, this is what came to my mind:

logic

  • download latest version as a zip file to the server
  • unzip
  • upload and overwrite the files already existing and if there are number of versions available:
    • assume user is having 1.2 version and he need to update to the 1.5 newest version
    • system will download all the versions after 1.2 and overwrite files one by one with the files of 1.3, 1.4 and 1.5 versions.

This seems a big overload to the server. I really don't have another idea. I hope you all can hep me out. And I also want to know what kind of PHP technologies I can use for this?

0

There are 0 answers