CodeCanyon

Version Checker

  • Has been a member for 2-3 years
  • Won a Competition
  • Author had a File in an Envato Bundle
  • Author had a Free File of the Month
  • Beta Tester
  • Exclusive Author
  • Sold between 100 000 and 250 000 dollars
  • Elite Author
  • Bought between 10 and 49 items
  • Belgium
  • Referred between 100 and 199 users
Sitebase says

Very original idea.

2 years ago
  • Has been a member for 3-4 years
  • Exclusive Author
  • Bought between 100 and 499 items
  • Canada
xemmex says

That is great! I will try later! :)

2 years ago
  • Has been a member for 4-5 years
  • Exclusive Author
  • Sold between 100 and 1 000 dollars
  • Bought between 10 and 49 items
  • Referred between 1 and 9 users
Twade says

Isn’t this just:

if( $_GET[‘version’] == 2.1 ) { include( “out-of-date.php” ); }

or is there something I am missing sorry?

2 years ago
Author
apearce apearce replied

Yes it works on that principal, but is more detailed and is a lot stabler/easy to manage. It’s not designed to be a big or complex script, just something simple and easy for PHP beginners that can be dragged-and-dropped into a site quickly and simply.

2 years ago
  • Has been a member for 5-6 years
  • Exclusive Author
  • Sold between 1 and 100 dollars
  • Bought between 100 and 499 items
  • United States
  • Referred between 100 and 199 users
markusv3000 says

can you describe more about how this process works, and how we would use your script?

2 years ago
  • Has been a member for 5-6 years
  • Exclusive Author
  • Sold between 1 000 and 5 000 dollars
  • Bought between 50 and 99 items
  • United Kingdom
  • Referred between 1 and 9 users
apearce says
Author
Well the idea is you use this with your program you’ve made. In your program somewhere you place a link to this script with the current version on your host:
http://www.yoursite.com/product/version.php?v=1.2
The idea is you simple drag and drop the files into the product folder and when ‘version.php’ loads up, it will tell you if your version (provided in the URL ) will need updating, is up to date or is invalid. All you do is open up the configuration file and change the version to the current version of your product.
2 years ago
  • Has been a member for 2-3 years
  • Exclusive Author
  • Sold between 50 000 and 100 000 dollars
  • Bought between 1 and 9 items
  • Referred between 50 and 99 users
alaja says

Is there a Control Panel to configure the items, current versions and URLs for re-download ?

2 years ago
  • Has been a member for 5-6 years
  • Exclusive Author
  • Sold between 1 000 and 5 000 dollars
  • Bought between 50 and 99 items
  • United Kingdom
  • Referred between 1 and 9 users
apearce says
Author
There is a configuration file (v-config.php) which just lists all the details that need to be changed, separate from the rest of the program – for example:
$vCurrentVersion = '2.2';
This page is commented for help and doesn’t haven’t any unnecessary code.
2 years ago
  • Has been a member for 3-4 years
  • Exclusive Author
  • Sold between 50 000 and 100 000 dollars
  • Bought between 1 and 9 items
  • Belgium
  • Referred between 200 and 499 users
GeertDD says

Why not use PHP ’s native version_compare() function? That function is also able to handle text like “alpha”, “beta” or “RC” in version numbers, and doesn’t limit itself to numbers only.

2 years ago
  • Has been a member for 5-6 years
  • Exclusive Author
  • Sold between 1 000 and 5 000 dollars
  • Bought between 50 and 99 items
  • United Kingdom
  • Referred between 1 and 9 users
apearce says
Author

Hey, thanks for the advice GeertDD – I’d never heard of version_compare() before you mentioned it. I’ve uploaded a new version of the script (1.2) after implementing version_compare() to it. I will post a message when it is available to download, but to see a demo of the new version, just look at the demo URL .

2 years ago
  • Has been a member for 5-6 years
  • Exclusive Author
  • Sold between 1 000 and 5 000 dollars
  • Bought between 50 and 99 items
  • United Kingdom
  • Referred between 1 and 9 users
apearce says
Author

Version 1.2 has just been approved for download, anybody who wants the updated version can go to their downloads page via their dashboard to get the new edition.

2 years ago
  • Has been a member for 2-3 years
  • Exclusive Author
  • Bought between 10 and 49 items
  • Referred between 1 and 9 users
ct2k7 says
Purchased

How would I have version 1.0-alpha then, since 1.0 and 1.0-alpha are the same?

2 years ago
  • Has been a member for 5-6 years
  • Exclusive Author
  • Sold between 1 000 and 5 000 dollars
  • Bought between 50 and 99 items
  • United Kingdom
  • Referred between 1 and 9 users
apearce says
Author

Hey, sent you an e-mail about your comment.

2 years ago
  • Has been a member for 2-3 years
  • Bought between 50 and 99 items
  • Norway
gesvo says

Looks interesting apearce, might buy it soon!

2 years ago
  • Has been a member for 3-4 years
  • Exclusive Author
  • Bought between 50 and 99 items
andy120 says

What this needs is an automatic upgrade function, kind of like what WordPress has.

2 years ago
  • Has been a member for 3-4 years
  • Bought between 100 and 499 items
edwinyzh says

Cool! Is it possible to show a list of new features for a new version? For example, if user’s version is 1.2, and the latest version is 1.3 and added several new features , the version checker page will show something like the following features:

1. Cool new feature 1 2. great new feature 2 3….

Is it possible?

I want to be able to edit a html or text file to describe the new features.

2 years ago
Author
apearce apearce replied

Hey not at the moment no it is not possible, but it’s a great idea and I will look into creating a feature like that – thanks for the comment I’ll see what can be done.

2 years ago
  • Has been a member for 0-1 years
  • Exclusive Author
  • Sold between 1 000 and 5 000 dollars
  • Mexico
Sourcegeek says

Well. The Preview doesn’t works =/

8 months ago
Author
apearce apearce replied

Sorry about that, thanks for the notice. Will try and get a new one up soon.

8 months ago

by
by
by
by
by