Jump to content

[SOLVED] Check for update


Haggis

Recommended Posts

well, you could make a txt file, that has the current version number. and every time an administrator of this package logs into their administrative account, it goes to your web site to check this txt file. In the php, you would check and see what the current version of the package is, and if it is older, that means that theirs is out of date, then you just have them go to your site to download the new package.

yeah.

 

so maybe something like this:

 

$ver = 1;
/*
Replace this block with getting the newest version not all servers support fopen from other sites,
so cURL may be the best way to get the newest version.
*/
$newestV = '1.2'; // this won't always be 1.2, depends on what the text file is
if($newestV > $ver){
     echo'<script>alert(\'There is a newer version avalible (v'.$newestV.')\');</script>';
}

That is exactly how I do it as well.

 

well, you could make a txt file, that has the current version number. and every time an administrator of this package logs into their administrative account, it goes to your web site to check this txt file. In the php, you would check and see what the current version of the package is, and if it is older, that means that theirs is out of date, then you just have them go to your site to download the new package.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.