PHP Script Version Checking/Notification

后端 未结 4 1044
情歌与酒
情歌与酒 2021-02-04 17:08

How can I check the version of my script against an online file to see if it\'s the latest version?

For clarification, I\'m talking about a script I wrote, not the v

4条回答
  •  梦如初夏
    2021-02-04 17:26

    Have an RSS or Atom feed with update info. Wordpress does something similar. Then you can locally save information which updates have been shown to the user etc.

    For even simpler solution, have a file on project website that would contain just the version number. Then compare it with a version number stored in your program, probably within a constant.

提交回复
热议问题