How to self-update PHP+MySQL CMS?

后端 未结 6 684
独厮守ぢ
独厮守ぢ 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:41

    There is a SQL library called SQLOO (that I created) that attempts to solve this problem. It's a little rough still, but the basic idea is that you setup the SQL schema in PHP code and then SQLOO changes the current database schema to match the code. This allows for the SQL schema and attached PHP code to be changed together and in much smaller chunks.

    http://code.google.com/p/sqloo/

    http://code.google.com/p/sqloo/source/browse/#svn/trunk/example <- examples

提交回复
热议问题