How to self-update PHP+MySQL CMS?

后端 未结 6 685
独厮守ぢ
独厮守ぢ 2021-01-31 04:53

I\'m writing a CMS on PHP+MySQL. I want it to be self-updatable (throw one click in admin panel). What are the best practices?
How to compare current version of cms and a ve

6条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-31 05:28

    I agree with Bart van Heukelom's answer, it's the most usual way of doing it.

    The only other option would be to turn your CMS into a bunch of remote Web Services/scripts and external CSS/JS files that you host in one location only.

    Then everyone using your CMS would connect to your central "CMS server" and all that would be on their (calling) server is a bunch of scripts to call your Web Services/scripts that do all the processing and output. If you went down this route you'd need to identify/authenticate each request so that you returned the corresponding data for the given CMS user.

提交回复
热议问题