PHP making a download counter without leaving the current page
问题 I tried to create a download counter with PHP. The script, I have created, works, but when I click the download link, the script sends me to a blank page. Is it possible to stay on the page while downloading and counting? Here's my code of my download.php file: <?php $Down=$_GET['Down']; ?> <html> <head> <meta http-equiv="refresh" content="0;url=<?php echo $Down; ?>"> </head> <body> <?php $fp = fopen("counter.txt", "r"); $count = fread($fp, 1024); fclose($fp); $count = $count + 1; $fp = fopen