[Solved] Count Downloads?
Hello Guys,
Don't worry i know how this works
but what i don't know how can i show the current download integer
in to the label:
i save the count integers into a text file
now i like to know how to show it into a label:
Downloaded already: here comes the integer
example:
Downloaded : 2
thanks
Dummy1912
Don't worry i know how this works
but what i don't know how can i show the current download integer
in to the label:
i save the count integers into a text file
now i like to know how to show it into a label:
Downloaded already: here comes the integer
example:
Downloaded : 2
thanks
Dummy1912
Last edited by Dummy1912 on Sun Jul 17, 2011 10:38 am, edited 1 time in total.
visit us on:
http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
Use the System.IO namespace. You need to read the text file and convert the used pieces into an integer and display that.
Zulf wrote:Use the System.IO namespace. You need to read the text file and convert the used pieces into an integer and display that.Hi Zulf,
sorry I'm not using vb for this
i need it in a html itself
visit us on:
http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
hmm im not much into HTML but umm im guessing after a download has finished
add it somewhere in your code sort of like My.settings in vb and by add it i mean have an integer Then + 1 it, but then again im guessing
add it somewhere in your code sort of like My.settings in vb and by add it i mean have an integer Then + 1 it, but then again im guessing
I think he means like getting the download counts of a website such as:
File: chrome.exe
Downloads: 54
and then his program retrieves the number 54.
Am I right?
File: chrome.exe
Downloads: 54
and then his program retrieves the number 54.
Am I right?
Hey Agust,
yea you are 100% right
yea you are 100% right
Bogoh67 wrote:well if the download url is static there may be a way...do you know a way? please
visit us on:
http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
Dummy1912 wrote:Hey Agust,so do you have one static download url? or do you have multiple or unlimited?
yea you are 100% right
Bogoh67 wrote:well if the download url is static there may be a way...do you know a way? please
You could use a server side PHP script to keep track of the downloads, then you can use a meta tag to redirect to the file:
Code: Select all
<meta http-equiv="refresh" content="2; url=file.zip">
<?php
$count = file_get_contents("counter.txt") or die("could not read counter.txt");
echo $count . " downloads so far";
$count++;
file_put_contents("counter.txt", $count) or die("could not write counter.txt");
?>
Dummy1912 wrote:Oh no it's my bad I didn't check what section this was in. Carry on.Zulf wrote:Use the System.IO namespace. You need to read the text file and convert the used pieces into an integer and display that.Hi Zulf,
sorry I'm not using vb for this
i need it in a html itself
Copyright Information
Copyright © Codenstuff.com 2020 - 2023