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 version of PHP. I’d like to incorporate a way for the end user to tell when I’ve updated the script.
To specify the second (more simple) solution phjr proposed:
Have a file
version.txton your own public server and include the following function into your deployed project/script:version.txtshould just contain the most recent version number, e.g.: