[HowTo] Use the version check for your products
by
09 Jun 2006
Howdy folks! Since I just tapped into a trap here, I thought I'll write up a few lines about this already: Like we all know you can supply a version check URL in the product manager of vB 3.6. This URL should return something like this: Code:
<version productid="my_product_id">1.2.3</version> Versions in the following notation will work as well (I tested it): 1.23 OK, so far so already told on the vb.com announcement. Here comes what they didn't tell us (yet) The request for the version is done via a POST request! So, putting up a simple text or XML file that holds the current version will not work in most cases since most webservers answer a POST an a static page with "Method not supported". So, you need a litte PHP script like this: PHP Code:
<?php echo '<version productid="my_product_id">1.2.3</version>'; ?>
You can also specify additional arguments in the URL like Code:
http://domain.tld/version.php?param1=foo¶m2=bar You can then grab those parameters via the $_REQUEST global: PHP Code:
<?php
That's about it. Remeber: POST, not GET, and you'll get the post |