Index
[home]
General | Control Panel | |
---|---|---|
Entire manual in one web page.
Publishing a Download Count
When the "Get Links" menu item is used or when a download has been successfully set up, a download link URL and a quick count link URL are provided. This section is about how to use the quick count link URL.
The quick count link URL can be used in two ways, both optional.
-
The quick count link URL can be copied and pasted into a browser's address bar. Click enter/return, and the total number of downloads will be printed in the browser window.
Thus, you can use the URL for your own quick count or give it to someone with an interest in always having the total download count available.
-
The download count can be printed on a PHP web page if your installation of PHP is configured to accept http://... URLs in the readfile() function. Here is the code:
<?php readfile("_________"); ?>
Replace _________ with the quick count link URL.
To test whether or not your PHP installation accepts http://... URLs in the readfile() function, give it a try. Make a file named test.php with the above code in it, put it on your server, and see if it works.
If it does not work, your hosting company can change the PHP configuration file. Specifically, allow_url_fopen needs to be set to "1" in the php.ini file. Here is a reference, should they ask for one:
http://www.php.net/manual/en/filesystem.configuration.php
Download Handler version 1.0b
Copyright 2011 Bontrager Connection, LLC
Copyright 2012 Will Bontrager Software, LLC