Jump to content

PHP Application Version and Latest Update


marksie1988

Recommended Posts

Hi Guys,

 

Sorry if this is the wrong forum but i wasnt sure the best one.

 

i am trying to see how others control the version of apps they have written and updating.

 

i want to set the version of my app e.g. 1.0 and then have a section where if i release 1.5 it will show up that a new version is available for upgrade.

 

the only thing im not too sure about is when someone goes to upgrade if not all of the updated files are uploaded correctly i want it to say version missmatch.

 

could someone give me examples of how i could achieve this?

Link to comment
Share on other sites

You could use a version file and have the update check an sql database for the value you've entered, and if the database has a higher number than the version file, you alert for update.  Also, if it would be used on a foreign server, you could just use a version file on your own server and get the contents of it showing the # and compare that way.  Very simple.

Link to comment
Share on other sites

You could use a version file and have the update check an sql database for the value you've entered, and if the database has a higher number than the version file, you alert for update.  Also, if it would be used on a foreign server, you could just use a version file on your own server and get the contents of it showing the # and compare that way.  Very simple.

 

Ok that makes sense, but how would i ensure that each file was the latest version? Would you sugest that i have a DB with each version of each file and if this all matches then they are on the latest version (this would save changing the version in files that havent been changed) then i could have a line in the table for the main version and if the main version changes they must do a full update :S

Link to comment
Share on other sites

i want to set the version of my app e.g. 1.0 and then have a section where if i release 1.5 it will show up that a new version is available for upgrade.

 

Have a file on your server that holds the latest version info (eg version.txt) If you only have a version number (eg 1.5.1b) then a text-file should suffice otherwise if you have more information that needs to be checked (eg modules compatibility, ..) then I would opt for a XML-file.

 

Patching would be done through either packages or live patches from your source-control system.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.