I have a php operation which sends a download count to a text file. With each file download, it increases the number.
The entire contents of the text file are like this:
39
As you see, there is nothing else in the text file. Just that number. With each new download, the number increases by 1. For example, say you go download the file, the number will change to 40.
I want to display this download number on a page. For example: Downloads: 39
The page I want to display on is php, so either php or javascript will work just fine. However, I prefer javascript.
The text file is on the same server in the same folder as the web page.
So, put simply, I want to read that value in the text file and display it on a web page.