I've found a php script to count my sites downloads. It saves downloads counts in a txt file as integer type. Like the count.txt contains only "109", means file was downloaded 109 times. I want to show the download counts using native javascript. Not PHP. just want to get the integer data from the txt file as variable. Is it posssible? if possible, how?
PHP Script is:
<html>
<head>
<meta http-equiv="refresh" content="0;url=1.jpeg">
</head>
<body>
<?php
$fp = fopen("Count.txt", "r");
$count = fread($fp, 1024);
fclose($fp);
$count = $count + 1;
$fp = fopen("Count.txt", "w");
fwrite($fp, $count);
fclose($fp);
?>
</body>
</html>